composer-php

How to configure tcpdf when installing with Composer?

非 Y 不嫁゛ 提交于 2021-01-27 12:31:03
问题 Our legacy PHP code includes tcpdf (https://github.com/tecnickcom/TCPDF) as part of the code base. I am trying to move it out to a vendor folder, so I added Composer to the project, added TCPDF to composer.json and updated. But the config/tcpdf_config.php file is modified in our code base (custom PDF author name etc.), and rightfully so, according to the docs: http://www.tcpdf.org/installation.php Now, I'm not sure it's a good idea to modify vendor/tecnick.com/tcpdf/config/tcpdf_config.php

hh_client reports errors on package

时光怂恿深爱的人放手 提交于 2021-01-27 07:46:10
问题 I am following the instruction in Getting started on official Hacklang website. As it says, I run: $ touch .hhconfig $ mkdir bin src tests $ cat > hh_autoload.json { "roots": [ "src/" ], "devRoots": [ "tests/" ], "devFailureHandler": "Facebook\\AutoloadMap\\HHClientFallbackHandler" } $ composer require hhvm/hsl hhvm/hhvm-autoload Then I run hh_client , which throws 74 errors like those: Typing[4110] You cannot use HH_FIXME or HH_IGNORE_ERROR comments to suppress error 4110 --> vendor/autoload

Difference between composer update and composer global update

社会主义新天地 提交于 2021-01-26 03:43:53
问题 What are the differences between composer update and composer global update in yii2? 回答1: It's not anything to do with Yii directly. Composer allows you to install dependencies globally or per-project (the default). https://getcomposer.org/doc/03-cli.md#global This is merely a helper to manage a project stored in a central location that can hold CLI tools or Composer plugins that you want to have available everywhere. You might want to install something like phpunit or phpcs globally (so it's

bash: composer: command not found

南楼画角 提交于 2021-01-24 08:20:46
问题 On a server I want to do composer update/install and both give the error: -bash: composer: command not found I can see composer.phar, composer.json and composer.lock are there. How can I find out why I can't update? Unfortunately the site is down at the moment because I get an error because one package isn't there at the moment. UPDATE: If I enter the following command: php composer.phar install/update everything seems to be working. Is there something I can do to change this or is it always

bash: composer: command not found

北战南征 提交于 2021-01-24 08:20:23
问题 On a server I want to do composer update/install and both give the error: -bash: composer: command not found I can see composer.phar, composer.json and composer.lock are there. How can I find out why I can't update? Unfortunately the site is down at the moment because I get an error because one package isn't there at the moment. UPDATE: If I enter the following command: php composer.phar install/update everything seems to be working. Is there something I can do to change this or is it always

bash: composer: command not found

≯℡__Kan透↙ 提交于 2021-01-24 08:18:49
问题 On a server I want to do composer update/install and both give the error: -bash: composer: command not found I can see composer.phar, composer.json and composer.lock are there. How can I find out why I can't update? Unfortunately the site is down at the moment because I get an error because one package isn't there at the moment. UPDATE: If I enter the following command: php composer.phar install/update everything seems to be working. Is there something I can do to change this or is it always

bash: composer: command not found

六月ゝ 毕业季﹏ 提交于 2021-01-24 08:18:46
问题 On a server I want to do composer update/install and both give the error: -bash: composer: command not found I can see composer.phar, composer.json and composer.lock are there. How can I find out why I can't update? Unfortunately the site is down at the moment because I get an error because one package isn't there at the moment. UPDATE: If I enter the following command: php composer.phar install/update everything seems to be working. Is there something I can do to change this or is it always

How to downgrade or install a specific version of Composer?

与世无争的帅哥 提交于 2021-01-20 16:21:35
问题 I'm getting the following error in a project I'm setting up: You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2. I've started at a new company this week, just trying to get their projects installed and there doesn't seem to be a way to change my composer version on Windows. I'd rather not update all their packages as I'm not familiar with the projects yet and have no

How to downgrade or install a specific version of Composer?

大城市里の小女人 提交于 2021-01-20 16:21:11
问题 I'm getting the following error in a project I'm setting up: You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2. I've started at a new company this week, just trying to get their projects installed and there doesn't seem to be a way to change my composer version on Windows. I'd rather not update all their packages as I'm not familiar with the projects yet and have no

“Argument 1 passed to ApiPlatform\Core\Bridge\Doctrine\Orm\Metadata\Property\DoctrineOrmPropertyMetadataFactory::__construct() must be an instance…”

我怕爱的太早我们不能终老 提交于 2021-01-20 08:53:45
问题 While attempting to install Api-Platform (or run composer update on an existing Api-Platform installation, I get an error like this: Uncaught Error: Argument 1 passed to ApiPlatform\Core\Bridge\Doctrine\Orm\Metadata\Property\DoctrineOrmPropertyMetadataFactory::__construct() must be an instance of Doctrine\Common\Persistence\ManagerRegistry, instance of Doctrine\Bundle\DoctrineBundle\Registry given, called in App_KernelDevDebugContainer.php on line 1530 ["exception" => TypeError { …}] What can