composer-php

composer update -vvv is not working

人走茶凉 提交于 2019-12-22 04:08:56
问题 I have installed composer globally on ubuntu 14.04. When I run composer --version it works with the following output Composer version 1.0-dev (45b1f356c24d87788a339f6a50d6d78bef464c47) 2015-02-27 14:31:27 But when I run the following command composer update -vvv It gives the following error Failed to initialize global composer: Composer could not find the config file: /home/enamul/.composer/composer.json To initialize a project, please create a composer.json file as described in the http:/

How to force a package to be installed?

寵の児 提交于 2019-12-22 03:54:25
问题 I'm trying to install the following package through composer : https://packagist.org/packages/cartalyst/sentry#dev-feature/laravel-5 When I do: composer require cartalyst/sentry dev-feature/laravel-5 I always receive this error: [InvalidArgumentException] Could not find package dev-feature/laravel-5 at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability If I change minimum-stability to dev it will still complain. However, if I install dev

Ambiguous class resolution in laravel phpexcel update

可紊 提交于 2019-12-22 03:50:12
问题 I try to update the laravel with php excel while installing i found the below warning in the composer. Error: Warning: Ambiguous class resolution, "SettingsController" was found in both "C:\xampp\htdocs\mti\app\controllers\SettingsController.php" and "C:\xampp\htdocs\mti\app\controllers\SettingsControllerBackup.php", the first will be used.Warning: Ambiguous class resolution, "ClassModel" was found in both "C:\xampp\htdocs\mti\app\models\ClassModel.php" and "C:\xampp\htdocs\mti\ app\models

How to remove all tests in composer php?

醉酒当歌 提交于 2019-12-22 03:25:39
问题 I'm new in composer development. I just start to work with composer in my current project. And I think my question is already asked before or I'm noob about composer :D There are many test files and directories in vendor of each dependency. I just want to remove those tests before upload it to server. Is there any command to remove those tests OR I need to remove it manually OR what...? :'( 回答1: Is there any command to remove those tests OR I need to remove it manually OR what...? :'( Thats

Do not update a specific package

 ̄綄美尐妖づ 提交于 2019-12-22 01:26:33
问题 Is there a way to tell composer that each time I do a composer update I want him to ignore a specific package? 回答1: Actually I don't know if there is any way to tell composer to exclude one specific package from updating but you can tell which packages to update as composer update <package> <package2>; // or php composer.phar update <package> <package2>; For example, composer update foo/package1 bar/package2; // or php composer.phar update foo/package1 bar/package2; Also, I think, if you don

autoload.php missing from vendor folder with Cakephp 3.0

有些话、适合烂在心里 提交于 2019-12-22 01:15:16
问题 I have installed fresh package of Cakephp 3.0, I have followed this tutorial, a fresh package has been installed on my system, but when I try to run the server then I get this error: PHP Warning: require(/var/www/html/bookmarker/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/bookmarker/bin/cake.php on line 31 And these are the commands I have used: curl -s https://getcomposer.org/installer | php php composer.phar create-project --prefer-dist cakephp

Laravel 4.2 Composer install error: “could not scan for classes”

隐身守侯 提交于 2019-12-21 19:52:26
问题 I want to install on my new Laravel 4.2 installation some packages via Composer. However, I am getting an exception. This is my Composer file: { "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "license": "MIT", "require": { "laravel/framework": "4.2.*", "zizaco/confide": "~4.0@dev", "zizaco/entrust": "1.2.*@dev", "barryvdh/laravel-ide-helper": "1.*", "fzaninotto/faker": "1.3.*@dev", "bllim/datatables": "~1.3",

Struggling to install mink and behat using composer for use with symfony2

試著忘記壹切 提交于 2019-12-21 12:57:09
问题 I'm trying to install behat and mink with symfony 2.4 using composer but I can't seem to get my composer.json file to an resolve to an installable set of packages. I installed symfony2 using the command on http://symfony.com/doc/current/book/installation.html php composer.phar create-project symfony/framework-standard-edition /path/to/webroot/Symfony 2.4.* Below is my require section of my composer.json file: "require": { "php": ">=5.3.3", "symfony/symfony": "~2.4", "doctrine/orm": "~2.2,>=2

can't create a Laravel project because mcrypt extension is missing

你。 提交于 2019-12-21 12:56:03
问题 OK, I have seen many posts about this, and I have spent the entire day working through them to solve this issue, with no success. I am trying to create a Laravel project. I am using a Mac (Yosemite), which is running PHP 5.5.14. There is also an older version of PHP on the machine. When I try to create a project from the command line using "laravel new projectname ", no errors are reported, but the command just creates an empty folder named with the project name. I get the "Crafting

How to disable Xdebug loading for PHP CLI? [closed]

六眼飞鱼酱① 提交于 2019-12-21 10:15:03
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . Im using composer, and when i do an update. It takes a huge chunk of time if xdebug is loaded in my php.ini file. How can i disable xdebug only for cli. So composer won't take as much time. Yet i will have xdebug enabled? 回答1: I found the answer by specifying a custom php.ini file