I want to install a package with the composer. I input the next command:
composer global require package-name
installed a package with package-name from packagist.org, but I want to install a local package with the same name.
Please, prompt me, how I can explain the composer, that it must install a local package?
Related
i just installed laravel for the first time and got this error, i have reinstalled Composer many times but it doesn't work, maybe you guys can help me out
PHP version 8.2
i installed laravel global installer, but it shows symfony things error, i have reinstalled composer but it doesn't work
please see this url ( installation laravel)
first: install composer on OS (Linux , Windows or MAC)
If you have already installed Composer, you must be clear chache in composer:
php composer.phar clear-cache
or this command:
composer clear-cache
then Using installation via composer:
composer create-project laravel/laravel example-app
I can,t install composer require simplesoftwareio/simple-qrcode package
when i try to install simple-qrcode packege I get this errors,
I tried install package watson/rememberable on localhost and it's installed successfully but when tried install it on shared hosting package killed and added package name to composer.json file, but not installed source code to vendor folder. I tried install package by clearing composer & Laravel caches but package not installed. How I can install it correctly?
To install the most recent version, run the following command:
composer require watson/rememberable
OR
Add to composer.json file:
"require": {
"watson/rememberable": "^3.1",
},
After, Run this command in the command prompt: composer update
Maybe you are in production mode. In the .env file change:
APP_ENV=local
Then try installing again.
I want to force to composer to download all packages before to install it and to speedup the dependencies installation on projects.
On production environment, I don't want to wait to packages download, it must be installed from cache.
Something like:
$> composer download-install # Currently not exists
$> composer install # Install from previously cached packages.
There are any composer option to do it?
Thanks!
There's a composer package that does exactly that!
Require it globally like this:
$ composer global require hirak/prestissimo
Then just a regular composer install will prefetch all the packages first and then install them as if they're from cache.
$ composer install
Read more at https://github.com/hirak/prestissimo
I am getting this error while installing AWS SDK via PEAR. I never got this before.
$ sudo pear channel-discover pear.amazonwebservices.com
Adding Channel "pear.amazonwebservices.com" succeeded
Discovery of channel "pear.amazonwebservices.com" succeeded
$ sudo pear install aws/sdk
Unknown remote channel: guzzlephp.org/pear
aws/sdk requires package "channel://guzzlephp.org/pear/Guzzle" (version >= 3.0.2)
No valid packages found
install failed
Can somebody give me a hand.
Taken from here:
https://github.com/aws/aws-sdk-php/blob/master/README.md#installing-via-pear
Installing via PEAR
PEAR, which stands for PHP Extension and Application Repository, is a framework and distribution system for reusable PHP components. It is the PHP equivalent of other package management solutions like Yum that install packages system-wide.
PEAR packages are easy to install, and are available in your PHP environment path so that they are accessible to any PHP project. PEAR packages are not specific to your project, but rather to the machine they're installed on.
From the command-line, you can install the SDK with PEAR as follows. Note: You may need to use sudo for the following command.
pear -D auto_discover=1 install pear.amazonwebservices.com/sdk
Once the SDK has been installed via PEAR, you can load the phar into your project with:
require 'AWSSDKforPHP/aws.phar';
Had the same problem, but this fixed it:
Install the old package first
sudo pear -D auto_discover=1 install pear.amazonwebservices.com/sdk-1.6.0
Then update it
sudo pear install pear.amazonwebservices.com/sdk
To check:
ubuntu#ip-xx-xx-xx:~$ sudo pear install aws/sdk
aws/sdk is already installed and is the same as the released version 2.4.0
Try this before installing the SDK:
sudo pear install --alldeps --force guzzle/guzzle
well I ended up installing the old package (I didn't need the new stuff such as glacier etc)
pear install aws/sdk-1.5.17.1