When I try to install a Laravel project from a composer.lock file, Composer prompts me for authentication.
$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
- Installing laravel/framework (v4.1.21)
Authentication required (api.github.com):
Username:
$ composer --version
Composer version 7343198817f365b1676ced0f353808f0e408ff9a 2014-02-07 09:59:35
$ php -i | grep ssl
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, tls
openssl
I have OpenSSL installed. Using PHP 5.5.3 on Ubuntu 13.10.
Any idea how to get around this? Tried to give it my Github credentials, but it didn't work.
You do not need to run Composer on your server as well as locally, once you run composer install or composer update your project will have all its dependencies available and you can just upload it straight to your server. Hope it helps!!
phar install (or composer install ) command to install all of the framework's dependencies. This process requires Git to be installed on the server to successfully complete the installation. If you want to update the Laravel framework, you may issue the php composer.
Composer helps you declare, manage, and install dependencies of PHP projects. See https://getcomposer.org/ for more information and documentation.
The main purpose of the composer is to install the dependencies or libraries for an application. The composer also provides the users to install the PHP applications available on the Packagist, where Packagist is the main repository that contains all the available packages.
I ran into the same issue and a coworker suggested to run:
composer install --prefer-source
which will git clone
Description:
Forces installation from package sources when possible, including VCS information.
He also noted that:
composer install --prefer-dist
will download a zipped version of the package.
Description:
Forces installation from package dist even for dev versions.
In either case, the API is not used.
Happens a lot with Composer.
This is a temporary composer/packagist problem: it's not being able to download required files (usually due to timeout) and when file access is 'denied' it asks for the VCS password.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With