Boilerplate project to get started with a PHP package.
- Clone this project
- Change the Git upstream to your new repository
- Change the repository name through the top of the README (in the badges)
- Remove the
src/Example.php
andtests/ExampleTest.php
example files - Update the
psr-4
block in thecomposer.json
file to have your namespace - Update the Name, Description, Authors, and License of the
composer.json
file - The boilerplate includes a setup for code coverage with Coveralls:
-
- Login to https://coveralls.io/ and import your repository
-
- Grab the repo token from Coveralls, and add it as a secret into the GitHub repository with the the name
COVERALLS_REPO_TOKEN
- Grab the repo token from Coveralls, and add it as a secret into the GitHub repository with the the name
- The boilerplate includes a badge for maintainability score with Code Climate:
-
- Login to https://codeclimate.com and import your repository
- The boilerplate includes a setup for maintainability score with Code Climate:
-
- Login to https://codeclimate.com and import your repository
- Start writing your package!