I updated the composer with this command: It was updated to version 2.0.4. Then when I tried to launch my Laravel project using: I got this error: I tried getting back to the old version of the composer with this: The composer was downgraded to version 1.9.3, but it didn’t help with the error. Then I used this command to
Tag: composer-php
Problem with TravisCI version matrix after updating to composer 2.0
After updating to Composer 2.0 I got into problems on doing my Travis. I have a TYPO3 Extension, that I want to test with multiple TYPO3 Versions. Till yesterday I could do this with composer require nimut/typo3-complete:$TYPO3_VERSION (coming from the version Matrix). After the update I got following error/information. As I have no composer.lock in my repository, I tested my
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 Answer This bundle does not support
Can’t install “laravel-apidoc-generator” due to “Conclusion: remove doctrine/inflector 2.0.3”
I’m trying to install laravel-apidoc-generator (https://github.com/mpociot/laravel-apidoc-generator) in my latest Lumen REST API. This is my Lumen version: Lumen (8.0.1) (Laravel Components ^8.0) This …
require_once returns true instead of expected object
Both vendor/autoload.php files are basically identical: In both files: This has had me digging into Composer’s autoload files (which has been insightful), but I’m still perplexed: Why does requiring the first file return boolean true, and not object(ComposerAutoloadClassLoader? Update I created a copy of vendor/autoload.php, vendor/aught.php and when I require that one, it returns the object. Answer require_once returns true
I am trying to insatall PHP Composer in Mac OS 10.13.6 and facing a problem
i am trying to install PHP Composer in my Mac os 10.13.6 with terminal . But when i run that command => mv composer.phar /usr/local/bin/composer it does not compile and gives me this message => mv: rename composer.phar to /usr/local/bin/composer: Permission denied. Can somebody help me where am i wrong to install PHP composer ? You can see the screenshot
Class FooBarBaz located in ./foo/bar/utility/baz.php does not comply with psr-4 autoloading standard. Skipping
When running composer’s update, install, require, dump-autoload, etc.; I suddenly start getting a yellow deprecation notice that says: Class FooBarBaz located in ./foo/bar/utility/baz.php does not comply with psr-4 autoloading standard. Skipping. Before Composer 2.0, one used to get: Deprecation Notice: Class FooBarBaz located in ./foo/bar/Baz.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0.
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/Services/OrderServiceTest.php’ Too many arguments, expected arguments “command”. Notice: I’ve seen this post: How do you pass an argument to a composer script from the
dockerfile: `composer install –no-dev installs dev-dependencies, then deletes them straight away after
My docker-compose setup does (I think) some wierd things. I am installing from this composer.json: { “require-dev”: { “phpunit/phpunit”:”~9.0″, “squizlabs/php_codesniffer”: “~3….
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.json to make this happen? I see there used to