composer-php

How composer `extra.symfony.require` restriction is enforced?

女生的网名这么多〃 提交于 2020-06-16 09:22:50
问题 Let's say I have a Symfony v4.4 (Flex) project with the following block in the composer.json : "extra": { "symfony": { "allow-contrib": false, "require": "4.4.*" } } As expected, it restricts the Symfony core packages to stick to the v4.4 version. symfony/monolog-bridge package respects it, so you cannot install symfony/monolog-bridge ~4.3.0 or ^5.0 . Yet you can install symfony/monolog-bundle ~3.5.0 , which is also expected, given it's just a bundle that is not part of the core Symfony

How composer `extra.symfony.require` restriction is enforced?

爷,独闯天下 提交于 2020-06-16 09:21:11
问题 Let's say I have a Symfony v4.4 (Flex) project with the following block in the composer.json : "extra": { "symfony": { "allow-contrib": false, "require": "4.4.*" } } As expected, it restricts the Symfony core packages to stick to the v4.4 version. symfony/monolog-bridge package respects it, so you cannot install symfony/monolog-bridge ~4.3.0 or ^5.0 . Yet you can install symfony/monolog-bundle ~3.5.0 , which is also expected, given it's just a bundle that is not part of the core Symfony

Composer is very slow while downloading Laravel

北慕城南 提交于 2020-06-14 05:05:31
问题 can you help me please? I want to install Laravel via composer create-project laravel/laravel in to the cms directory but Composer downloads it very very slow. Can you help me with it how to boost it? Here is my terminal: saidalo@Saidalo-Yodgoroff:/var/www/html$ composer create-project laravel/laravel cms "5.1.*" Installing laravel/laravel (v5.1.33) - Installing laravel/laravel (v5.1.33) Downloading: 100% Created project in cms > php -r "copy('.env.example', '.env');" Loading composer

Composer is very slow while downloading Laravel

妖精的绣舞 提交于 2020-06-14 05:02:41
问题 can you help me please? I want to install Laravel via composer create-project laravel/laravel in to the cms directory but Composer downloads it very very slow. Can you help me with it how to boost it? Here is my terminal: saidalo@Saidalo-Yodgoroff:/var/www/html$ composer create-project laravel/laravel cms "5.1.*" Installing laravel/laravel (v5.1.33) - Installing laravel/laravel (v5.1.33) Downloading: 100% Created project in cms > php -r "copy('.env.example', '.env');" Loading composer

Symfony 5 : install smalot/cups-ipp with composer

ぃ、小莉子 提交于 2020-06-13 12:54:50
问题 I'm trying to install smalot/cups-ipp package on Symfony 5 but I have dependency issue with required packages. To install smalot/cups-ipp , I run following command: # composer require smalot/cups-ipp:dev-master And result is: Do not run Composer as root/super user! See https://getcomposer.org/root for details ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Restricting packages listed in "symfony/symfony" to

Symfony 5 : install smalot/cups-ipp with composer

为君一笑 提交于 2020-06-13 12:53:54
问题 I'm trying to install smalot/cups-ipp package on Symfony 5 but I have dependency issue with required packages. To install smalot/cups-ipp , I run following command: # composer require smalot/cups-ipp:dev-master And result is: Do not run Composer as root/super user! See https://getcomposer.org/root for details ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Restricting packages listed in "symfony/symfony" to

How to uninstall Laravel Passport

放肆的年华 提交于 2020-06-10 08:13:36
问题 I've decided to use JWT and completely remove Laravel Passport from the project. I was trying to start with composer remove laravel/passport . However, it does no good: [Symfony\Component\Debug\Exception\FatalThrowableError] Class 'Laravel\Passport\Passport' not found Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1 Removal failed, reverting ./composer.json to its original content. What could be the right and safe removing procedure? 回答1:

How do I create a project based on a specific version of Symfony using composer?

跟風遠走 提交于 2020-06-09 17:46:28
问题 I want to create a project based on Symfony 2.4.6. These commands: ../composer.phar create-project symfony/framework-standard-edition=v2.4.6 ./ ../composer.phar create-project symfony/framework-standard-edition ./ 2.4.6 ../composer.phar create-project symfony/framework-standard-edition ./ v2.4.6 all say that they are installing Symfony 2.4.6, but I end up with 2.4.9 in my composer.lock and in vendors/. Is there a way to force creation of a project based specifically on 2.4.6? 回答1: try the

How do I create a project based on a specific version of Symfony using composer?

杀马特。学长 韩版系。学妹 提交于 2020-06-09 17:46:07
问题 I want to create a project based on Symfony 2.4.6. These commands: ../composer.phar create-project symfony/framework-standard-edition=v2.4.6 ./ ../composer.phar create-project symfony/framework-standard-edition ./ 2.4.6 ../composer.phar create-project symfony/framework-standard-edition ./ v2.4.6 all say that they are installing Symfony 2.4.6, but I end up with 2.4.9 in my composer.lock and in vendors/. Is there a way to force creation of a project based specifically on 2.4.6? 回答1: try the

Class Firebase\JWT\JWT not found

安稳与你 提交于 2020-06-08 16:44:20
问题 I want to use pure firebase/php-jwt library in my code. Firstly, I go to /var/www/html/ and like the official library page is suggesting, I do this composer require firebase/php-jwt After I run this command, I see that a new vendor folder is created inside /var/www/html/ with a lot of files and subfolders. I then create my token.php file right in /var/www/html/ with contents similar to that from the official page: <?php use \Firebase\JWT\JWT; $key = "example_key"; $token = array( "iss" =>