kreait/php-boilerplate

This package is abandoned and no longer maintained. No replacement package was suggested.

A boilerplate for new composer based PHP projects.

Installs: 462

Dependents: 0

Suggesters: 0

Security: 0

Stars: 25

Watchers: 4

Forks: 4

Open Issues: 0

Language:Makefile

3.0.1 2018-04-27 21:36 UTC

This package is auto-updated.

Last update: 2023-01-29 02:53:10 UTC


README

A boilerplate for new composer based PHP projects.

Getting started

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

# With git
$ git clone git@github.com: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! 😄