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.
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.
Related
the composer require yajra/laravel-oci8:^8 command is giving me the following error:
C:\Users\yö\PhpstormProjects\BRP>composer require yajra/laravel-oci8:^8
./composer.json has been updated
Running composer update yajra/laravel-oci8
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires yajra/laravel-oci8 8 -> satisfiable by yajra/laravel-oci8[v8.0.0].
- yajra/laravel-oci8 v8.0.0 requires ext-oci8 >=2.0.0 -> it is missing from your system. Install or enable PHP's oci8 extension.
To enable extensions, verify that they are enabled in your .ini files:
- C:\PHP74\php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Windows 10
PHP 7.4.6
Laravel 8.26.1
PHP Storm 2020.2.3
I am not using XAMMP or WAMP
I hope someone can help me out. Thank you in advance.
You are missing the OCI8 PHP extension, So follow these steps:
From http://pecl.php.net/package/oci8 download exact version, for you must be php_oci8-2.2.0, unzip it and copy to PHP ext folder, for you its in "C:\php74\ext"
Un-Comment "extension=php_oci8_11g.dll" in php.ini and restart Apache or any other web server that you are using
Check php_info(), oci8 should be enabled.
Run composer require yajra/laravel-oci8:^8 command again.
download extensions with suitable php version in https://windows.php.net/downloads/pecl/releases/oci8/
extract and copy all the .dll files to /xampp/php/ext
download instant client oracle with suitable OS and PHP version in http://www.oracle.com/technetwork/topics/winsoft-085727.html
extract and copy all the dll files to /xampp/apache/bin/ and copy it to /xampp/php/
install https://github.com/yajra/laravel-oci8
I am try to install barcode package in my cpanel laravel project.But every time it gets killed.
command:
[......#host public_html]$ composer require milon/barcode
after few moment:
Using version ^7.0 for milon/barcode
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
The "http://repo.packagist.org/p/symfony/polyfill-iconv%24535e139d88ce6708c9d8bf795da669c3fe46467f4bc7dc900e2e65a8d77b56ae.json" file could not be downloaded: failed to open stream: Network is unreachable
http://repo.packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
Killed
it also happening for all the packages I want to install like:pdf or others.Updated my composer.still not working.
It happens for a lack of memory of your server. You can install the package in your local machine then replace your server composer.lock file with the local's composer.lock file Then go to the terminal and run composer update.
I'm running Ubuntu 18.04.4 LTS (Bionic Beaver).
I have installed Composer, Laravel, among other things on this server. I'm trying to run:
composer global require laravel/valet
It attempts to run, and outputs:
Changed current directory to /home/myUser/.config/composer Using version
^2.9 for laravel/valet ./composer.json has been updated Loading
composer repositories with package information Updating dependencies
(including require-dev) Nothing to install or update Generating
optimized autoload files
In ClassMapGenerator.php line 69:
Could not scan for classes inside "database/seeds" which does not
appear to be a file nor a folder
Where is/should this folder be, and why wouldn't it already be there anyway?
Laravel Valet is a MacOS utility, there are linux ports, such as this one, but it won't work on Ubuntu as it uses Homebrew under the hood, a package manager for MacOS.
I'm trying to download the laravel 5.3 installer via composer (in windows 10) as the official documentation says, but when i execute this command in the console
composer global require "laravel/installer"
after a while i get this:
Using version ^1.3 for laravel/installer
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing symfony/process (v3.1.7)
Loading from cache
Failed to download symfony/process from dist: Invalid argument (C:\Users\Nicolßs\AppData\Roaming\Composer\vendor/symfony/process/510d7cdfaba888079a59ff4e97c9d707)
Now trying to download from source
- Installing symfony/process (v3.1.7)
Cloning 66de154ae86b1a07001da9fbffd620206e4faf94 from cache
Installation failed, deleting ./composer.json.
[RuntimeException]
Failed to clone https://github.com/symfony/process.git via https, ssh protocols, aborting.
- https://github.com/symfony/process.git
Cloning into 'C:\Users\Nicolás\AppData\Roaming\Composer\vendor\symfony\process'...
"git-upload-pack 'C:/Users/Nicolás/AppData/Local/Composer/vcs/https---github.com-symfony-process.git'": git-upload-pack 'C:/Users/Nicolás/AppData/Local/Composer/vcs/https---github.com-s
ymfony-process.git': No such file or directory
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: The remote end hung up unexpectedly
- git#github.com:symfony/process.git
Cloning into 'C:\Users\Nicolás\AppData\Roaming\Composer\vendor\symfony\process'...
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Aparently, i can't clone the symfony/process repo. But then i try to do that manually with gitclone and i can connect and clone the repo perfectly.
Please help.
References
https://laravel.com/docs/5.3
If what your aim to do is develop with laravel. Get this tool: laragon at https://laragon.org/
It makes laravel development on windows cool.
I've got a client on a shared hosting environment (which I can't change) and I'm needing to install the Parse PHP SDK, but the host won't allow me to install the Composer package manager. Does anyone else know of a manual install method?
If you have wget/unzip available, just download latest release zip (bellow the release, this file).
Use unzip to unpack package and load it with PSR-4 autoloading (the composer's approach).
Composer isn't meant to be an installer, so you are not expected to run Composer on the production machine. What would happen if during your update process Github would be down? No new website version! And maybe also no old version.
Run Composer somewhere else, and then upload the result to the server, after you verified that everything went well.