Recommendations for organizing a php project using GIT?

I am working on the release of a PHP framework that I have been using for several years on github. I tried the best to work out the project should be structured, what additional files, such as readme, etc., should be added. Gaps were invented in google. Can someone point me to a project, a good example, or any good notes.

+4
source share
1 answer

Some PHP projects hosted on Git (hub) include:

I would just make sure temporary files, etc. don't get into the repository by creating a .gitignore file and adding some readme files, etc. to the root of the repository.

Any configuration files should also be ignored, and sample patterns should be created in the repository.

I would recommend writing a readme file in the Github format supported , for example Markdown. This will make your repository homepage page better.

You might want to follow some tutorial on class naming to simplify the implementation of functions such as autoload. For example, the MyFramework_Controller class should be located in the /lib/MyFramework/Controller.php directory.

At the moment, you just have to create some basic layout - it will be easier to give suggestions when we can see what you have right now.

+3
source

All Articles