https://github.com/firehed/php-library-template
Repository template for PHP libraries. Sets up composer, CI with Github Actions, and more.
https://github.com/firehed/php-library-template
Last synced: about 1 year ago
JSON representation
Repository template for PHP libraries. Sets up composer, CI with Github Actions, and more.
- Host: GitHub
- URL: https://github.com/firehed/php-library-template
- Owner: Firehed
- License: mit
- Created: 2020-09-28T17:00:38.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-11-11T19:13:20.000Z (over 3 years ago)
- Last Synced: 2025-02-13T22:27:02.276Z (over 1 year ago)
- Language: PHP
- Size: 23.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# php-library-template
Repository template for PHP libraries. Sets up composer, CI with Github Actions, and more.
## Git
- Configures `.gitignore` for common excludes in a PHP library
## Composer
- Placeholders for library name, description, and PSR-4 autoloading
- Scripts for testing
- Requires current version of PHP
- Includes testing tools (configured) as dev dependencies
## Testing and CI
CI is configured using Github Actions.
- PHPUnit `^9.3` with default configuration (`src`/`tests`).
- The tests workflow uses a build matrix to test against multiple versions of PHP, and with high and low Composer dependencies installed
- PHPStan with strict ruleset, max level, and the PHPUnit extension
- PHP Code Sniffer configured with PSR-12