composer-php

PHP Fatal error: Uncaught exception PharException with message manifest

岁酱吖の 提交于 2019-12-23 15:20:13
问题 while trying to install composer.phar through command line , got an error PHP Fatal error: Uncaught exception 'PharException' with message manifest cannot be larger than 100 mb in phar please support me to solve this problem, i am trying to installing symfony2.1 回答1: It appears you got a corrupted phar for some reason. Try downloading a new one from https://getcomposer.org/download/ - if the CLI instructions do not work out for you you can just download the last snapshot by hand from https:/

Composer update => Fatal error: Out of memory

血红的双手。 提交于 2019-12-23 13:23:08
问题 I'm using XAMPP on a local machine. I couldn't solve this issue by removing the PHP memory limit. What I already tried : modified my php.ini to remove the memory limit => memory_limit=-1 Checked I was running PHP 5.6 and self-updated composer to the last version But it doesn't seem to have any effect at all. Does anyone have a suggestion? My composer.json : { "name": "erwin/symff", "license": "proprietary", "type": "project", "autoload": { "psr-4": { "AppBundle\\": "src/AppBundle" },

Symfony 2.6 error after using composer: “Vendor libraries must be installed”

青春壹個敷衍的年華 提交于 2019-12-23 11:58:10
问题 After creating or updating a Symfony 2.6.1 project with composer, I get a "Vendor libraries must be installed" error and it suggests running php composer.phar install to install them. The exact steps I'm taking:- composer create-project symfony/framework-standard-edition my_new_project/ cd my_new_project This appears to run without any problems, and as far as I can tell, does download all the necessary vendor packages. However if I then run:- php app/check.php This results in:- * Vendor

Discover latest versions of Composer packages when dependencies are locked

纵然是瞬间 提交于 2019-12-23 11:51:26
问题 Let's say I have a composer.json file with locked dependencies: { "require" : { "zendframework/zendframework" : "2.4.2" }, "require-dev": { "phpunit/phpunit": "4.6.6" } } I want to do that because would like to update dependencies manually, so I won't be in a situation where my build fails or other developers experience issues I don't have because Composer installed a different version of the package. Is there a good way to use Composer to list all newer versions of the locked packages,

How to structure MVC application composer style?

淺唱寂寞╮ 提交于 2019-12-23 10:25:22
问题 I'm in the very early stages of making an MVC web application. I want to try and do things composer style. Here is my directory structure so far: public_html |-vendor | |-MyVendorName | | |-DomainObjectClass.php So that's where I am storing domain objects. I'm also trying to do MVC as close as I can to the way it is done in the answer to this question Where I am a bit stuck is where to put the Model, Controller, View, Services, DataMappers etc. Should I make subdirectories of MyVendorName (eg

“Member has private access error” after deleting plugin in CakePHP using PhpStorm

廉价感情. 提交于 2019-12-23 10:16:45
问题 After deleting a plugin from my CakePHP Framework and all the lines of code associated with it I get an error in the getInitializer function of the autoload_static.php in my vendor->composer folder: public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { $loader->prefixLengthsPsr4 = ComposerStaticInit8835d383dd0f2dc92619594332e8ea7e::$prefixLengthsPsr4; $loader->prefixDirsPsr4 = ComposerStaticInit8835d383dd0f2dc92619594332e8ea7e::

PHPUnit's TextUI/command.php not found

爱⌒轻易说出口 提交于 2019-12-23 09:39:30
问题 I installed phpunit for my symfony2 project following this: How to use phpunit installed from composer? But I get the following error now: Warning: include(C:\Program Files (x86)\Zend\Apache2\Program Files (x86)\Zend\Apache2\htdocs\project1\vendor\phpunit\phpunit\PHPUnit\TextUI\Command.php): failed to open stream: No such file or directory in C:\Program Files (x86)\Zend\Apache2\htdocs\project1\vendor\composer\ClassLoader.php on line 150 The file does exist and is in the autoload_classmap file

How to change minimum stability for just one package in Composer

无人久伴 提交于 2019-12-23 08:47:13
问题 I'm trying to incorporate the ldap-auth module into my Laravel project via Composer. However, it is only available in a dev stability version. My current Composer.json has a minimum-stability set to stable , which I'd like to keep for the rest of my modules, but when I try to run composer update , it gives an error that there is a module that does not meet the minimum stability requirements. Is there a way to install that package separately with its own minimum-stability requirement? 回答1:

Composer autoloader not loading GuzzleHttp\ClientInterface

心已入冬 提交于 2019-12-23 07:49:52
问题 I'm trying to use Guzzle, but I'm getting the following fatal error: Fatal error: Class 'GuzzleHttp\ClientInterface' not found in /var/www/myapp/vendor/guzzlehttp/guzzle/src/functions.php on line 13 I'm autoloading with composer autoloader: require 'vendor/autoload.php'; use Guzzle\Http\Client; $client = new Client(); $requests = Array( $client->createRequest('GET', 'ams1.myapp.com:8080/api/ffmpeg_make_snapshots.php'), $client->createRequest('GET', 'ams2.myapp.com:8080/api/ffmpeg_make

Php composer openssl error

不羁岁月 提交于 2019-12-23 07:41:31
问题 Before asking, i have to say that I have tried every similar question here on stack and elsewhere and failed. I am unable to use composer because of this error: requires ext-openssl * -> the requested PHP extension openssl is missing from your system. I have xampp on ubuntu . What I have tried: I have uncommented ;extension=php_openssl.dll in php.ini (both cli and normal) - did not work Installed openssl through terminal outside of php - did not work Check in phpinfo() if openssl is loaded