composer-php

I have ext-fileinfo but Composer says it is missing

試著忘記壹切 提交于 2019-12-30 01:47:44
问题 I'm trying to install Laravel package Intervention Image and when I run composer update : Your requirements could not be resolved to an installable set of packages. Problem 1 - intervention/image 2.0.5 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system. - intervention/image 2.0.4 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system. - intervention/image 2.0.3 requires ext-fileinfo * -> the requested PHP extension

Latest Composer version not pulling Laravel

南楼画角 提交于 2019-12-30 01:19:06
问题 The Latest version of Composer is not pulling Laravel, I thought it could be because of Composer added new secure_http feature for downloading from Packagist and Laravel Packagist are in HTTP. This is what I think, so I need solution. The previous version of Composer doing well. The error showing on my terminal when I was trying to install Laravel installer, is: Failed to decode response: zlib_decode(): data error Retrying with degraded mode, check https://getcomposer.org/doc/articles

How to force Composer to use https:// instead of git://?

南笙酒味 提交于 2019-12-29 18:52:30
问题 I have something like this "repositories": [ { "type": "package", "package": { "name": "myrepo", "version": "dev-master", "source": { "url": "https://github.com/me/myrepo.git", "type": "git", "reference": "master" } } }, But when Composer pulls the repo, the remotes ( origin and composer ) in .git/config are set up as git://github.com/me/myrepo.git . [remote "origin"] url = git://github.com/me/myrepo.git fetch = +refs/heads/*:refs/remotes/origin/* pushurl = git@github.com:me/myrepo.git

Composer [UnexpectedValueException] error will trying to use composer to install a github project

风流意气都作罢 提交于 2019-12-29 08:55:01
问题 I am trying to install a github project using composer and get the following error Composer [UnexpectedValueException] Your Github oauth token for github.com contains invalid characters: "" Can anyone explain what I need to do to correct this error? I am using the following command composer create-project --prefer-dist --stability=dev vova07/yii2-start yii2-start Thank you 回答1: As far as I know (I'm a beginner with composer too), the problem is with your authentication, so you have to fix

“https://packagist.org/packages.json” file could not be downloaded

梦想与她 提交于 2019-12-29 08:35:12
问题 I am trying to install a new laravel instance with the following command: composer create-project laravel/larevel authii --prefer-dist But I am encountering the following problem: My internet connection is on proxy server: 192.168.20.9:8080 Moreover, I am on windows platform win8.1 x64 and Xampp with PHP 5.6.11 , any help? 回答1: You need to tell composer to use a proxy. Linke here: PHP Composer behind http proxy and Composer cannot download files Like: export HTTP_PROXY="http://my-corp-proxy

Installing Composer for Windows - unable to find wrapper “https”

混江龙づ霸主 提交于 2019-12-29 07:52:47
问题 I am trying to install Composer for Windows using the command line with the following call: php -r "readfile(https://getcomposer.org/installer);" | php However, I get this error message: Warning: readfile(): Unable to find the wrapper "https" - did you forget to enable it when configured PHP? in Command line code on line 1 Call Stack: 0.0010 224336 1. {main}() Command line code:0 0.0010 224488 2. readfile() command line code:1 Warning: readfile(https://getcomposer.org/installer): failed to

Composer and multiple branches

一笑奈何 提交于 2019-12-29 06:45:30
问题 I have a git project with 2 branches: Master: Currently the "stable branch" but subjected to changed. Releases are tagged from there. Devel: A development branch for the next version. This is merged into master when we think some features from here are quite stable. In master, I have a requirement in my composer.json that uses a specific version: "require" : { "triagens/arangodb" : "1.2.1", "php" : ">=5.4.0" }, In my devel branch, I would like to use the development version of the dependency:

AWS Elastic Beanstalk and Composer

﹥>﹥吖頭↗ 提交于 2019-12-29 05:26:12
问题 I have an application with Composer dependencies which I want to deploy to an Elastic Beanstalk container. However my composer.json file is not in the project root folder. My project root has the following structure: - .ebextensions - scripts - www (Webroot) - composer.json And I have set the document root to /www in the container configuration options. The issue is that I need to install composer on the box and run the composer install script to add the project dependencies. I understand

Symfony2 and Google API integration

寵の児 提交于 2019-12-28 16:17:53
问题 I am going to use Google API located on http://google-api-php-client.googlecode.com/svn/trunk/ with my Symfony2 application. Is it possible to import this API with composer ? What is the best practice to use this API with my application ? 回答1: It's probably too late, but there is no need to use forked git repos, you can refer to Google's "native" svn directly. Add the following section to your composer.json : "repositories": [ { "type": "package", "package": { "name": "project/google-api-php

composer not install in windows 7

懵懂的女人 提交于 2019-12-28 13:33:27
问题 I already uncommented in php.ini: [PHP] ;;;;;;;;;;;;;;;;;;; ; About php.ini ; ;;;;;;;;;;;;;;;;;;; ;extension=php_oci8_11g.dll extension=php_openssl.dll ;extension=php_pdo_firebird.dll Variables of the system set ok. PHP version 5.4.16: C:\wamp\bin\php\php5.4.16\php.exe Add to System path variable: C:\ProgramData\ComposerSetup\bin But, recive this error: Some settings on your machine make Composer unable to work properly. Make sure that you fix the issues listed below and run this script again