yapro / symfony-filesystem-ext
Installs: 799
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.4.0
- ext-curl: *
- psr/log: *
- symfony/filesystem: *
- symfony/http-foundation: *
- symfony/mime: *
- yapro/monolog-ext: *
Requires (Dev)
This package is not auto-updated.
Last update: 2025-04-02 19:36:04 UTC
README
Lib for solving the most common problems with files.
Installation
Add as a requirement in your composer.json
file or run for prod:
composer require yapro/symfony-filesystem-ext
As dev:
composer require yapro/symfony-filesystem-ext dev-main
Development
Build:
docker build -t yapro/symfony-filesystem-ext:latest -f ./Dockerfile ./
Tests:
docker run --user=1000:1000 --rm -v $(pwd):/app -w /app yapro/symfony-filesystem-ext:latest bash -c " composer install --optimize-autoloader --no-scripts --no-interaction && vendor/bin/simple-phpunit tests"
Installation dev`s requirements:
docker run --user=1000:1000 --add-host=host.docker.internal:host-gateway -it --rm -v $(pwd):/app -w /app yapro/symfony-filesystem-ext:latest bash
composer install -o
Debug PHP:
PHP_IDE_CONFIG="serverName=common" \ XDEBUG_SESSION=common \ XDEBUG_MODE=debug \ XDEBUG_CONFIG="max_nesting_level=200 client_port=9003 client_host=host.docker.internal" \ vendor/bin/simple-phpunit --cache-result-file=/tmp/phpunit.cache -v --stderr --stop-on-incomplete --stop-on-defect \ --stop-on-failure --stop-on-warning --fail-on-warning --stop-on-risky --fail-on-risky
Cs-Fixer:
wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v3.8.0/php-cs-fixer.phar && chmod +x ./php-cs-fixer.phar docker run --user=1000:1000 --rm -v $(pwd):/app -w /app yapro/symfony-filesystem-ext:latest ./php-cs-fixer.phar fix --config=.php-cs-fixer.dist.php -v --using-cache=no --allow-risky=yes
Update phpmd rules:
wget https://github.com/phpmd/phpmd/releases/download/2.12.0/phpmd.phar && chmod +x ./phpmd.phar docker run --user=1000:1000 --rm -v $(pwd):/app -w /app yapro/symfony-filesystem-ext:latest ./phpmd.phar . text phpmd.xml --exclude .github/workflows,vendor --strict --generate-baseline