Posts

Showing posts with the label composer

Composer life hacks

Image
Composer life hacks Switching between composer 1 & 2: composer  self-update --1   --> switch to composer 1 composer  self-update --2   -->  switch to composer 2 If you only want to install, upgrade or remove one dependency, you can explicitly list it as an argument: php composer.phar update monolog/monolog [...] composer dump-env dev - will generate .env.local.php (which you can change with your needs) Installing tools globally: php composer.phar global require friendsofphp/php-cs-fixer or just  composer global require friendsofphp/php-cs-fixer

Interesting PHP composer packages

Image
Interesting PHP composer packages for your projects   ( to be continued ... ) jokkedk/webgrind  -  Webgrind is an  Xdebug  profiling web frontend in PHP woohoolabs/yang - Woohoo Labs. Yang is a PHP framework that helps you to communicate with JSON:API servers more easily. vimeo/psalm  - A static analysis tool for finding errors in PHP applications rectorphp/rector - Rector is an open-source tool that helps with automatic PHP upgrades and code refactorings in bulk. PhpStorm 2022.2 allows you to easily run Rector on your code base and selectively apply fixes in bulk. graham-campbell/result-type   -  An implementation of the result type netresearch/jsonmapper - Map nested JSON structures onto PHP classes lesstif/php-jira-rest-client - for creating tickets in Jira and using its API vlucas/phpdotenv - Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automatically. webmozart/assert  -  This library contains efficient assertions to test the input and output