grzegorz-jamroz / sf-api-foundation
Project contains fundamental interfaces for iFrost Symfony Api.
Installs: 106
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/grzegorz-jamroz/sf-api-foundation
Requires
- php: >=8.4
- grzegorz-jamroz/foundations: ^1.0
- symfony/http-foundation: ^6.0|^7.0
- symfony/routing: ^6.0|^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.89
- grzegorz-jamroz/sf-api-bundle: ^7.0
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^12.4
README
A PHP library which contains fundamental interfaces and routing features for Symfony Doctrine Api Bundle.
Installation
composer require grzegorz-jamroz/sf-api-foundation
Development with Docker
Build and run the containers:
docker compose up -d
Copy vendor folder from container to host
docker compose cp app:/app/vendor ./vendor
Run static analysis
docker compose exec app bin/fix
Run tests
docker compose exec app bin/test
Run single test file:
docker compose exec app vendor/bin/phpunit --filter <testMethodName> <path/to/TestFile.php> docker compose exec app vendor/bin/phpunit --filter testShouldReturnExpectedFloat tests/Unit/TransformNumeric/ToFloatTest.php
Run coverage report
- Enable xdebug
- Run:
docker compose exec app bin/coverage
Enable xdebug
docker compose exec app xdebug on
Disable xdebug
docker compose exec app xdebug off