grzegorz-jamroz / filesystem
A PHP library for handling file and folder operations.
Installs: 109
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/grzegorz-jamroz/filesystem
Requires
- php: >=8.4
- grzegorz-jamroz/foundations: ^1.0
- grzegorz-jamroz/plain-data-transformer: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.89
- grzegorz-jamroz/dotenv: ^0.0.2
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^12.4
README
A PHP library for handling file and folder operations.
Installation
composer require grzegorz-jamroz/filesystem
Development with Docker
Build and run the containers:
docker compose up -d
Note: When working with Docker container - there is not need to create .env file with SUDOER_PASSWORD=password.
It could be only required when working on host machine to properly run all tests.
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