composer-php

Cannot establish SSL connection with Composer with PHP 5.6.3

笑着哭i 提交于 2020-01-11 04:54:09
问题 After cloning a repository on Ubuntu 14.04 with PHP 5.6.3 I am unable to run php composer.phar selfupdate neither php composer.phar update . I get this message: [Composer\Downloader\TransportException] The "https://getcomposer.org/version" file could not be downloaded: SSL ope ration failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed Failed to enable crypto failed to open stream: operation failed I think the issue

Unable to self-update composer?

佐手、 提交于 2020-01-11 04:18:06
问题 I am trying to update composer with no luck! What I have tried: $ composer self-update [InvalidArgumentException] Command "self-update" is not defined. $ sudo -H composer self-update [InvalidArgumentException] Command "self-update" is not defined. $ sudo apt-get install composer Reading package lists... Done Building dependency tree Reading state information... Done composer is already the newest version. The following packages were automatically installed and are no longer required: libntdb1

Laravel throws 'The bootstrap/cache directory must be present and writable' error after update

若如初见. 提交于 2020-01-10 11:48:09
问题 I used 'composer update', which updated a few packages. During the updating process the website still functions. However, after it says 'The compiled services file has been removed', the website doesn't load and instead says: Exception in ProviderRepository.php line 190: The bootstrap/cache directory must be present and writable. The weirdest thing is, when I run 'composer update' again, the website starts to work again, until the compiled services file is removed, at which point it throws

Yii2 | requires bower-asset/jquery

岁酱吖の 提交于 2020-01-10 10:07:12
问题 I'm trying to install Yii2 via composer: composer global require "fxp/composer-asset-plugin:~1.1.1" composer create-project --prefer-dist yiisoft/yii2-app-basic basic ~/.composer/composer.json { "require": { "fxp/composer-asset-plugin": "~1.1.1" } } result: Problem 1 - yiisoft/yii2 2.0.x-dev requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found. - yiisoft/yii2 dev-master requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found. -

Yii2 | requires bower-asset/jquery

倾然丶 夕夏残阳落幕 提交于 2020-01-10 10:07:09
问题 I'm trying to install Yii2 via composer: composer global require "fxp/composer-asset-plugin:~1.1.1" composer create-project --prefer-dist yiisoft/yii2-app-basic basic ~/.composer/composer.json { "require": { "fxp/composer-asset-plugin": "~1.1.1" } } result: Problem 1 - yiisoft/yii2 2.0.x-dev requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found. - yiisoft/yii2 dev-master requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found. -

install ext-zip for Mac

大兔子大兔子 提交于 2020-01-09 10:17:11
问题 I am trying to run composer update and I get the following errors: Problem 1 - The requested PHP extension ext-zip * is missing from your system. Install or enable PHP's zip extension. Problem 2 - maatwebsite/excel 3.1.10 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0]. - maatwebsite/excel 3.1.11 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0]

install ext-zip for Mac

若如初见. 提交于 2020-01-09 10:15:08
问题 I am trying to run composer update and I get the following errors: Problem 1 - The requested PHP extension ext-zip * is missing from your system. Install or enable PHP's zip extension. Problem 2 - maatwebsite/excel 3.1.10 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0]. - maatwebsite/excel 3.1.11 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0]

PHP7 : install ext-dom issue

馋奶兔 提交于 2020-01-09 00:47:43
问题 I'm running laravel 5.4 on Ubuntu 16.04 server with PHP7. trying to install cviebrock/eloquent-sluggable package throw some error: pish@let:/home/sherk/ftp/www$ sudo composer require cviebrock/eloquent-sluggable Do not run Composer as root/super user! See https://getcomposer.org/root for details Using version ^4.2 for cviebrock/eloquent-sluggable ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your

Laravel: How to update packages in storage/framework

拈花ヽ惹草 提交于 2020-01-07 09:24:45
问题 I have removed a package with composer remove and it's now removed from composer.json and composer.lock files and also removed from vendor directory. But I noticed that it's still listed in these two files: storage/framework/packages.php and storage/framework/services.php . How can I update/rebuild these files? Also, when I run php artisan in the root of my project, I get this error: [Symfony\Component\Debug\Exception\FatalThrowableError] Class 'Morilog\Jalali\JalaliServiceProvider' not found

Laravel: How to update packages in storage/framework

删除回忆录丶 提交于 2020-01-07 09:23:32
问题 I have removed a package with composer remove and it's now removed from composer.json and composer.lock files and also removed from vendor directory. But I noticed that it's still listed in these two files: storage/framework/packages.php and storage/framework/services.php . How can I update/rebuild these files? Also, when I run php artisan in the root of my project, I get this error: [Symfony\Component\Debug\Exception\FatalThrowableError] Class 'Morilog\Jalali\JalaliServiceProvider' not found