tomkyle / boilerplate-php
PHP Package boilerplate
1.2.0
2024-08-28 17:44 UTC
Requires
- php: ^8.3
- ext-json: *
- psr/cache: ^1.0|^2.0|^3.0
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- psr/log: ^1.1|^2.0|^3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.63
- guzzlehttp/guzzle: ^7.0
- laminas/laminas-log: ^2.15
- nyholm/psr7: ^1.3
- phpstan/phpstan: ^1.12
- phpunit/phpunit: ^11.0
- rector/rector: ^1.2
- spatie/phpunit-watcher: ^1.0
- symfony/cache: ^5.0|^6.0
- tomkyle/find-run-test: ^1.0
Suggests
- guzzlehttp/guzzle: PSR-18 client (as of v7)
- monolog/monolog: PSR-3 Logger of choice
- nyholm/psr7: PSR-17 factories
- symfony/cache: PSR-6 and PSR-16 Cache engines
README
A template repository for PHP package.
Start new project
$ composer create-project tomkyle/boilerplate-php new-project
$ cd new-project
$ composer install
$ npm install
Requirements and suggestions
$ composer require monolog/monolog $ composer require symfony/cache $ composer require nyholm/psr7 $ composer require guzzlehttp/guzzle
Development
Run npm update
and watch the file system for PHP code changes. See package.json for a list of all watch and test tasks.
$ nmp run watch