accidental i stumbled upon this great gems created by tomas votruba. i have only tested SmartFileSystem so far but this gem really helped me out working on my pull request on twigcs.
It also fixes WTF behavior of Symfony\Component\Finder\SplFileInfo. Which one? When you run e.g. vendor/bin/ecs check src and use Finder, the getRelativeFilePath() in Symfony now returns all the relative paths to src. Which is useless, mainly with multiple dirs like: vendor/bin/ecs check src tests both containing file Post.php.
quote from https://github.com/Symplify/SmartFileSystem/blob/master/README.md
also have a look at his blog, there you also find things to read which maybe interesting for you https://www.tomasvotruba.cz/
the following text is copied from https://github.com/Symplify/Symplify/blob/master/README.md and lists up the cool tools/packages/bundles tomas created:
Coding Standard Utils
Easy Coding Standard - The easiest way to start a coding standard in your project. Easy, simple and intuitive. Combines both PHP-CS-Fixer and PHP_CodeSniffer.
Coding Standard - Final interface,
::class
Constant and other useful Checkers for PHP-CS-Fixer and PHP_CodeSniffer.
Symfony Utils
AutoBindParameter - Auto bind parameters for your Symfony applications
AutowireArrayParameter - Autowire Array Parameters for Symfony applications
Autodiscovery - Forget manual registration of translations, templates, mappings and routes in Symfony Application
FlexLoader - Keep your Symfony Kernel slim again and let FlexLoader load all the configs
PackageBuilder - Speed up your package DI Containers integration and Console apps to Symfony
SmartFileSystem -
SplFileInfo
on Steroids
Maintainer Utils
ChangelogLinker - Why write
CHANGELOG.md
, when you can generate itMonorepoBuilder - Validate, split, release and maintain Monorepo like a boss
Statie - www.statie.org - Static website generator in PHP with Twig/Latte, that fuels Pehapkari.cz and TomasVotruba.cz.
CLI Utils
- SetConfigResolver - Loads configs to you with CLI --config, -c, --set, -s or sets parameter
Migration Utils
LatteToTwigConverter - Converts Latte templates to Twig
NeonToYamlConverter - Converts NEON files to YAML
links:
- cover image by alfapp https://pixabay.com/photos/money-coins-gold-specie-1477064/
Top comments (1)
Thank you! Great post!