Sort packages without adding/updating dependencies

To quote from the Composer manual “Config” section: sort-packages Defaults to false. If true, the require command keeps packages sorted by name in composer.json when adding a new package. So if you run composer config sort-packages true you command Composer to add the following to your composer.json file: { “config”: { “sort-packages”: true } } … Read more

Composer Content-Length Mismatch

First, run: composer config –list –global //this will get the composer home path. [home] /root/.composer //it’s my composer home path. And then, edit the config.json, make it like this: { “config”: { “github-protocols”: [ “https” ] }, “repositories”: { “packagist.org”: { “type”: “composer”, “url”: “https://packagist.org” } } } It will make the packagist connection force … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)