All Projects → kreait → php-boilerplate

kreait / php-boilerplate

Licence: MIT license
A boilerplate for new composer based PHP projects.

Programming Languages

Makefile
30231 projects
PHP
23972 projects - #3 most used programming language

PHP Boilerplate

A boilerplate for new composer based PHP projects.

Getting started

# With composer
$ composer create-project kreait/php-boilerplate new-project

# With git
$ git clone [email protected]:kreait/php-boilerplate.git new-project && cd $_ && rm -rf .git && git init

Update composer.json

Replace the Namespaces in the autoload and autoload-dev sections with your project's namespaces and run composer dump-autoload.

(Optional) Update .gitattributes

Remove the comments in .gitattributes so that unneeded files for your package won't get included in your releases.

(Optional) Add composer.lock to the .gitignore file

If you're creating an application instead of a library, it is considered good practice to commit the composer.lock file together with the rest of the code.

Start coding! 😄

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].