composer-php

Laravel Homestead (Windows)

醉酒当歌 提交于 2020-01-16 05:06:15
问题 Today I have been trying to install the Laravel library together with Laravel Homestead.. But I can't seem to get it working. The first thing, Laravel documentation tells you to do: composer global require "laravel/homestead=~2.0" , but it didn't work. So I searched the internet some and found: composer global require "laravel/homestead=~3.0" , which actually worked. But now when I try to run the homestead command in my command line, it gives me this: http://prntscr.com/9perhj, that's the

Symfony2.3, How to register a 3rd party bundle in Kernel, and load it from a Controller?

痴心易碎 提交于 2020-01-16 04:06:06
问题 I would like to get some help with symfony2 regarding the bundle registration in the Kernel, Ive read most of symfony2 cookbook and doc for exemple : How to install 3rd party Bundles But yet everytime I failed doing so. I am using symfony 2.3 with composer, both up to date. Today I would like to use a 3rd party bundle called "google/apiclient" found on packagist.org, therefor i add the following line "google/apiclient": "dev-master" to my composer.json file which is located at the root of my

SVN Repo in vendor with Composer

蹲街弑〆低调 提交于 2020-01-15 13:33:00
问题 Currently, I have a private SVN repo checked out in my vendor directory that works with Composer. It works pretty fine, but only as long as I don't change/commit stuff. When I composer update after committing a change to the SVN repo I get the clear message that my way of working is not recommended, along with the message my .svn directory is missing. (The missing .svn directory may be because I have a checkout of multiple vendor packages from a single repo) I understand that having a

SVN Repo in vendor with Composer

自作多情 提交于 2020-01-15 13:29:12
问题 Currently, I have a private SVN repo checked out in my vendor directory that works with Composer. It works pretty fine, but only as long as I don't change/commit stuff. When I composer update after committing a change to the SVN repo I get the clear message that my way of working is not recommended, along with the message my .svn directory is missing. (The missing .svn directory may be because I have a checkout of multiple vendor packages from a single repo) I understand that having a

Cannot update Laravel 5.4 to 5.5 composer

*爱你&永不变心* 提交于 2020-01-15 06:25:10
问题 When I tried to update Laravel 5.5 from 5.4, it is show errors. { "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "type": "project", "require": { "php": ">=7.0", "intervention/image": "^2.4", "laravel/framework": "5.5.*", "laravel/tinker": "~1.0" }, "require-dev": { "fzaninotto/faker": "~1.4", "mockery/mockery": "0.9.*", "phpunit/phpunit": "~6.0" }, "autoload": { "classmap": [ "database" ], "psr-4": { "App\\": "app/"

Error when creating new project in laravel

北城以北 提交于 2020-01-15 03:51:06
问题 What i have tried: 1) Install php7.2 2) Install Composer 3) run command composer global require "laravel/installer" But when i run laravel new blog the output error is the following: The provided cwd does not exist. 回答1: The provided cwd does not exist means that the Current Working Directory does not exist which means that laravel new command was unable to create the directory 'blog' because you do not have the permission to do so. What you can do is to change the permissions for that

How composer check php version?

泪湿孤枕 提交于 2020-01-14 07:18:14
问题 I just wondering how composer check which php to use when check for requirements. I use MacOS and in terminal type: composer require phpunit/phpunit the result is something like: Problem 1 - phpunit/phpunit 5.0.4 requires php >=5.6 -> your PHP version (5.5.27) or "config.platform.php" value does not satisfy that requirement.... When I check php version: php -v The result is: PHP 5.6.10 (cli) (built: Jun 12 2015 14:08:56) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c)

How can I restore a service after composer update in Symfony? [closed]

可紊 提交于 2020-01-14 06:51:45
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 10 days ago . I made a composer update and I get the following error: Cannot autowire service "App\Controller\Modules\myapp\myappController": argument "$mySystem" of method "__construct()" references interface "League\Flysystem\FilesystemInterface" but no such service exists. Did you create a class that implements this

Why using PSR4 autoload doesn't add any classes into classmap/namespaces file?

早过忘川 提交于 2020-01-14 03:16:28
问题 I've got the following composer.json file: { "require-dev": { "queueit/KnownUser.V3.PHP": "dev-master" }, "repositories": [ { "type": "package", "package": { "name": "queueit/KnownUser.V3.PHP", "version": "dev-master", "source": { "type": "git", "url": "https://github.com/kenorb-contrib/KnownUser.V3.PHP.git", "reference": "task/composer-autoloader" } } } ] } However upon running composer install , the namespaces or classes aren't added into autoload_classmap.php or autoload_namespaces.php in

Installing composer using vagrant, hhvm, and Ubuntu 14.04

喜欢而已 提交于 2020-01-13 10:39:07
问题 At the end of my vagrant provisioning script I attempt to install composer using the following : sudo curl -sS https://getcomposer.org/installer | php sudo mv composer.phar /usr/local/bin/composer However when this is executed I get the following errors : SlowTimer [5612ms] at curl: https://getcomposer.org/composer.phar Download failed: Failed to open https://getcomposer.org/composer.phar (Resolving timed out after 5613 milliseconds) The download failed repeatedly, aborting. If I have php