composer-php

How do I use a Git submodule with a Composer loaded library?

浪子不回头ぞ 提交于 2019-12-28 03:30:06
问题 I have a Zend Framework 2 application. It contains some library code containing business logic and some other utilities that will be common to other applications that will be created later. My intention is to share it across projects using Composer. The question is, how do I do this properly and streamline the development? I will almost certainly need to make changes and additions to the library, from within the other project. I tried setting up vendor/stuff as a git submodule containing the

What are the differences between composer update and composer install?

核能气质少年 提交于 2019-12-28 01:39:11
问题 What are the differences between composer update and composer install ? 回答1: composer update composer update will update your depencencies as they are specified in composer.json For example, if you require this package as a dependency: "mockery/mockery": "0.9.*", and you have actually installed the 0.9.1 version of the package, running composer update will cause an upgrade of this package (for example to 0.9.2 , if it's already been released) in detail composer update will: Read composer.json

Unable to run 'composer.phar update' on the server

允我心安 提交于 2019-12-25 19:51:14
问题 I am trying to run Symfony application in the production server. I have uploaded my web files to public_html folder. I have installed Composer in my project resource using composer.phar install . Now I am trying to update Composer on the server I am getting this message/error php composer.phar update Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 -

How can I install Collective\Html\HtmlServiceProvider without composer?

☆樱花仙子☆ 提交于 2019-12-25 18:39:02
问题 I am on a cpanel shared hosting and don't have access to SSH. How can I install Collective\Html\HtmlServiceProvider without SSH? If I had SSH access I would use: composer require laravelcollective/html But I don't know what to do now. 回答1: Another solution would be downloading it locally with composer and uploading the entire project (including the vendor folder) with a ftp client. 回答2: Step 1: Go to https://github.com/LaravelCollective/html and download the repo. Step 2 Copy the zip and

zend framework 2 composer.php

我的梦境 提交于 2019-12-25 12:37:33
问题 when I try to install webino-image-thumb using zend php composer it gave me this error php composer.phar require webino/webino-image-thumb:2.*<br/> ./composer.json has been updated<br/> Loading composer repositories with package information<br/> Ignoring unknown parameter "server role"<br/> Updating dependencies (including require-dev)<br/> Your requirements could not be resolved to an installable set of packages.<br/><br/> Problem 1<br/> - Can only install one of: zf-commons/zfc-admin[v0.1.0

Cant install laravel on kali linux

泄露秘密 提交于 2019-12-25 08:47:46
问题 These codes which I have written terminal php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" php composer-setup.php php -r "unlink('composer-setup.php');" mv composer.phar /usr/local/bin/composer Composer

Composer error installing laravel-cors

筅森魡賤 提交于 2019-12-25 07:58:32
问题 I tried to install laravel-cors composer require barryvdh/laravel-cors It installed successfully or so I thought, but then when I went to publish the config I get this error: [RuntimeException] Error Output: PHP Fatal error: Cannot redeclare Composer\Autoload\includeFile() (previously declared in /www/vendor/composer/ClassLoader.php:410) in /www/config/vendor/composer/ClassLoader.php on line 413 I have tried removing laravel-cors and I still get this error. I have dumped autoload as well.

Composer error installing laravel-cors

拈花ヽ惹草 提交于 2019-12-25 07:57:24
问题 I tried to install laravel-cors composer require barryvdh/laravel-cors It installed successfully or so I thought, but then when I went to publish the config I get this error: [RuntimeException] Error Output: PHP Fatal error: Cannot redeclare Composer\Autoload\includeFile() (previously declared in /www/vendor/composer/ClassLoader.php:410) in /www/config/vendor/composer/ClassLoader.php on line 413 I have tried removing laravel-cors and I still get this error. I have dumped autoload as well.

network is fine, but cannot create laravel project and show error in the command

北城以北 提交于 2019-12-25 05:33:31
问题 I used this command to create a new laravel project in the homestead: composer create-project laravel/laravel Laravel Then, the terminal show this error: Failed to download laravel/laravel from dist: The "https://api.github.com/repos/laravel/laravel/zipball/7bddbdc2a1f8d9c23205707e74455d74684e3031" file could not be downloaded: failed to open stream: Connection timed out Now trying to download from source I used curl command to get the content, failed again: curl https://api.github.com/repos

Composer Installation Error

本秂侑毒 提交于 2019-12-25 04:55:37
问题 I have two server setups on my local computer one is Zend Server and one is a Wamp because I wanted to start working with Symfony 2 and it would not install on Zend. When I try to install composer I select the php.exe in my wamp folder but I keep getting this error at the end of the install. ERROR: The php exe you selected does not match the one found in your path. Selected: C:\wamp\bin\php\php5.3.13\php.exe In Path: C:\Program Files (x86)\Zend\ZendServer\bin\php.exe Remove the following from