Questions tagged [composer]

installing and using the PHP dependency management tool

Composer is a PHP dependency management tool.

40 questions
16
votes
3 answers

Why isn't Composer updated?

I'm using Ubuntu 16.04 LTS amd64. I have installed LAMP (php5.6, apache2, mysql) and Composer. I downloaded my Laravel project from GitHub. I would like to update Composer to start the local server php artisan serve. But when I would like to run…
13
votes
4 answers

Why does this script running su never seem to terminate if I change user inside the script?

I have a really simple bash script with 5 commands running under the root user. If I run commands manually one by one everything works - no problem. But as I run it as my-deploy.sh file via command bash /root/custom-scripts/deploy/my-deploy.sh 2>>…
Čamo
  • 849
3
votes
1 answer

Why does PHP's composer require command hang?

Note: I know this is a PHP question, but - and I could be wrong here - but I think the problem may only exist with PHP, composer on ubuntu. Anyway, almost every tutorial, including composer itself say run the composer require command to install a…
3
votes
2 answers

Can't permanently export PATH variable with custom path

I've installed composer and the laravel installer which is now located unter ~/.config/composer/vendor/bin. I want to use laravel directly as a command from anywhere, so I tried to add the directory to the $PATH variable. I probably could create a…
Musterknabe
  • 262
  • 3
  • 13
3
votes
0 answers

Composer fails to run (installed with apt)

The composer package from the apt repositories fails with every command (composer install, composer update, composer list, composer --version) Error message PHP Warning: require(Composer/autoload.php): failed to open stream: No such file or…
chaptuck
  • 1,106
2
votes
2 answers

How do I fix this error installing Laravel?

When I run this command sudo composer global require "laravel/installer" it produces this output: Changed current directory to /home/zoheir/.composer Do not run Composer as root/super user! See https://getcomposer.org/root for details Using version…
2
votes
2 answers

Force install php 7 packages on Ubuntu 22.04 LTS

While I know that php 8 is the default PHP choice on Ubuntu 22.04, I still use php 7 for my project. When installing packages related to PHP, the dependancies always pick php-common, php-*, etc.. and end up installing php 8 on the server. Currently…
2
votes
2 answers

How to update composer 1.6.3 to latest version 2.0.4?

I have tried to update my existing composer version in ubuntu. and I try to check the version but ubuntu say package not found. Then I again try sudo apt install composer to install composer. Now when I checked the composer's version. It shows 1.6.3…
1
vote
2 answers

Your requirements could not be resolved to an installable set of packages

So I'm trying to get calcinai/xero-php installed using Composer but am getting this error in specific. Your requirements could not be resolved to an installable set of packages. Problem 1 - The requested package calcinai/xero-php No version…
1
vote
1 answer

Not able to install composer

curl -sS https://getcomposer.org/installer | sudo php -- --install- dir=/usr/local/bin --filename=composer When I run the above command in terminal I got this this response: Some settings on your machine make Composer unable to work properly. Make…
Supriya
  • 11
1
vote
1 answer

Unable to download composer

I am getting this sort of error while downloading composer. php composer-setup.php All settings correct for using Composer PHP Warning: file_put_contents(/home/vasu/.composer/keys.dev.pub): failed to open stream: Permission denied in…
1
vote
1 answer

How to Install Laravel 5.3 in Ubuntu 14.04 Server

As what I have stated from the title, I need to install the newest laravel 5.3 in 14.04 server, the composer cannot run because it need PHP 5.6 but in my own server they have 5.5. Either, I have to upgrade the PHP (which I have stuck because I…
1
vote
0 answers

pdo_mysql.so problem when try to install composer

I want to install composer by apt install or composer-setup.php. After composer made the setup, and says composer -V I am getting this error message. Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql.so' (tried:…
vaso123
  • 255
1
vote
2 answers

"Composer update failed: "/usr/local/bin/composer" could not be written." after installing Composer using the terminal

I'm on ubuntu 20.04 LTS and I have installed Composer directly using the terminal, but I'm getting this error: [Composer\Downloader\FilesystemException] Filesystem exception: …
1
vote
0 answers

how to upgrade Composer to v2?

I am trying to upgrade composer to Composer2 (from Composer1). richb201@richb201-XPS-13-9370:/opt/docker-substantiator2/app/vendor/sendpulse-rest-api-php-master/src$ composer selfupdate Updating to version 2.0.13 (stable channel). Downloading…
richie
  • 17
1
2 3