https://github.com/wolfulus/php-template
PHP project template
https://github.com/wolfulus/php-template
analysis ci lint linter metrics php php-template quality static-analysis style travis typesafe workflow
Last synced: 5 months ago
JSON representation
PHP project template
- Host: GitHub
- URL: https://github.com/wolfulus/php-template
- Owner: WoLfulus
- Created: 2020-03-27T20:10:35.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-03T22:02:14.000Z (almost 5 years ago)
- Last Synced: 2025-09-01T17:50:29.702Z (6 months ago)
- Topics: analysis, ci, lint, linter, metrics, php, php-template, quality, static-analysis, style, travis, typesafe, workflow
- Language: PHP
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP Template
This is an **opinionated** project template that includes some repetitive and time consuming setups.
## Sources
Source folder `src` with a code file.
## Tests
Tests folder `tests` with a test file. Uses `phpunit` to execute tests.
> `composer test`
### Code coverage
Tests also generates coverage reports.
## Formatting
File formatter, that can automatically fix fix source files. Uses `php-cs-fixer` to format files.
> `composer format`.
## Style checks
Checks for files that doesn't conform with the project style rules. Uses `php-cs-fixer` to check files.
> `composer lint:php-cs-fixer`
## Static analysis
Static code analysis. Uses `phpstan` with `phpstan-strict-rules`.
> `composer lint:phpstan`
## Linter
Can run both style checks and static analysis.
> `composer lint`
## Code quality
Code quality analysis. Uses `phpinsights` for quality checks.
> `composer insights`
## Code metrics
Code metrics report with complexity, volume, maintainability and more. Uses `phpmetrics` to provide project metrics.
> `composer metrics`
## CI
Provides a GitHub workflow to run tests and linter. Caches composer dependencies, and uses `hirak/prestissimo` to speed up installations.
> `composer ci`
## Integrations
Provides basic configuration integration to [SonarCloud](https://sonarcloud.io) and [Coveralls](https://coveralls.io)