I like solving problems on Leetcode and prefer using my local development environment mostly, also Wanted to keep a track of all the problems which i have solved till now, so decided to maintain a repository for it. Created a strucutre which adheres to the PSR-4 autoloading PHP-fig standard.
For every new problem i create folder under the "src" directory with a php file for the Problem with a unit test file under the "tests" directory. I created this library just to automate these file creation task.
Create a project, and add this packages as DEV dependancy. Check tjhe repo for more details https://github.com/vishwac09/LeetCodes
Add via composer
composer require --dev vishwac09/php-algo-scaffold
Execute via
./vendor/bin/pas