PHP Package boilerplate

1.0.0 2021-01-25 08:11 UTC

This package is auto-updated.

Last update: 2022-01-20 20:25:47 UTC


A template repository for PHP package.

Create new project

Either using composer create-project

$ composer create-project tomkyle/boilerplate-php new-project  

… or using the traditional way using git clone:

$ git clone
# or
$ git clone

Requirements and suggestions

$ composer require monolog/monolog
$ composer require symfony/cache
$ composer require nyholm/psr7
$ composer require guzzlehttp/guzzle

Unit tests and development

  1. Copy phpunit.xml.dist to phpunit.xml
  2. Run PhpUnit like this:
$ composer test
# or
$ vendor/bin/phpunit

And there's more in the scripts section of composer.json.