Skip to content

Tag: composer-php

Symfony 5 can’t install sensio/generator-bundle

i tried a fresh new symfony 5 project, but i cannot install the generator bundle to ease everything with doctrine entities. It seems that Symfony 5 is too new to install the generator bundle. Here is the output of the composer command to add the sensio generator bundle: and here is my composer.json file Answe…

How to pass arguments to custom composer script

In my Laravel project, I want to run phpunit for a single file, like this one: Here is my composer setup: However, I’m running into this error: www@287dd7480e22:/var/www$ composer run-script test tests/Unit/Services/OrderServiceTest.php php artisan config:cache –env=testing ‘tests/Unit/Servi…

Composer install to target folder

I am using Composer v1.10.6 and am trying to get the dependencies to install into a specific folder. File structure is like this: So I want the dependencies defined in composer.json to be installed under /some-folder/vendor, but they are just getting installed to /vendor. What property do I add to composer.js…