nik_jain Posted September 13, 2014 Share Posted September 13, 2014 Its like an elusive goal of mine. To be able to write big pieces of code that are reusable in multiple projects. For example: Lets say we are coding a simple 'Membership system'- login / signup etc. How would for instance something like routing would be handled in this so that it remains modular. Reusable in multiple projects that may be using a different router for their projects. Any guidance please ? Is there a book that shows how its done ? Quote Link to comment https://forums.phpfreaks.com/topic/291047-modular-programming-how/ Share on other sites More sharing options...
Ionut-Bajescu Posted September 13, 2014 Share Posted September 13, 2014 Router: route groups and named routes. I don't know if you need a book for this, just make modules and you will learn modular programming. Quote Link to comment https://forums.phpfreaks.com/topic/291047-modular-programming-how/#findComment-1490998 Share on other sites More sharing options...
ignace Posted September 14, 2014 Share Posted September 14, 2014 @Ionut-Bajescu thank you for your very insightful advice. Take a look at composer, it allows you to create packages that you can "require" in new projects. The Symfony framework uses independent bundles that can be distributed and installed through configuration. FOSUserBundle is such an example. Quote Link to comment https://forums.phpfreaks.com/topic/291047-modular-programming-how/#findComment-1491028 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.