Jump to content

Modular Programming. How ?


nik_jain

Recommended Posts

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 ?

Link to comment
https://forums.phpfreaks.com/topic/291047-modular-programming-how/
Share on other sites

@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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.