|
|
|
@ -16,12 +16,11 @@ This is the main FlightPHP core library for building fast, simple, and extensibl
|
|
|
|
- Run tests: `composer test` (uses phpunit/phpunit and spatie/phpunit-watcher)
|
|
|
|
- Run tests: `composer test` (uses phpunit/phpunit and spatie/phpunit-watcher)
|
|
|
|
- Run test server: `composer test-server` or `composer test-server-v2`
|
|
|
|
- Run test server: `composer test-server` or `composer test-server-v2`
|
|
|
|
- Lint code: `composer lint` (uses phpstan/phpstan, level 6)
|
|
|
|
- Lint code: `composer lint` (uses phpstan/phpstan, level 6)
|
|
|
|
- Beautify code: `composer beautify` (uses squizlabs/php_codesniffer, PSR1)
|
|
|
|
- Format code: `composer format` (uses squizlabs/php_codesniffer, PSR12)
|
|
|
|
- Check code style: `composer phpcs`
|
|
|
|
|
|
|
|
- Test coverage: `composer test-coverage`
|
|
|
|
- Test coverage: `composer test-coverage`
|
|
|
|
|
|
|
|
|
|
|
|
## Coding Standards
|
|
|
|
## Coding Standards
|
|
|
|
- Follow PSR1 coding standards (enforced by PHPCS)
|
|
|
|
- Follow PSR12 coding standards (enforced by PHPCS)
|
|
|
|
- Use strict comparisons (`===`, `!==`)
|
|
|
|
- Use strict comparisons (`===`, `!==`)
|
|
|
|
- PHPStan level 6 compliance
|
|
|
|
- PHPStan level 6 compliance
|
|
|
|
- Focus on PHP 7.4 compatibility (avoid PHP 8+ only features)
|
|
|
|
- Focus on PHP 7.4 compatibility (avoid PHP 8+ only features)
|
|
|
|
|