Page MenuHomeSolus

Composer
Closed, ResolvedPublic

Description

It might be an idea to add Composer (Dependency Manager for PHP) to the repository. It is an essential package for PHP developers and would be neat to have it in the repos.

https://getcomposer.org/

Tarball: https://github.com/composer/composer/archive/1.5.5.tar.gz

Revisions and Commits

Related Objects

Duplicates Merged Here
T6858: Composer

Event Timeline

DataDrake updated the task description. (Show Details)
DataDrake moved this task from Backlog to Accepted For Inclusion on the Package Requests board.

Hi,

Any insights on when composer could be added to the main repo? An essential PHP dependency, similar to Node.js' npm but not self-included unfortunately.

@jd When someone is enthusiastic enough to package it.

JoshStrobl claimed this task.
JoshStrobl added a project: Needs Maintainer.

This has sat in accepted for inclusion for 7 months now. Clearly, there is a lack of demand for the inclusion of this software, nobody has stepped up to provide a patch, maintain it, and properly integrate it. Closing as a result. Feel free to reopen but only when someone offers a patch via our proper patch submission methods and volunteers to be maintainer.

Forgive me for commenting here. I experienced the same problem with PHP 7.1 and composer. The solution I did (I don't know if this is a good way), but it works well on my system. What I do is download XAMPP from apachefriend.org
Install in the normal way :

sudo chmod +x xampp-linux-x64-7.1.21-0-installer.run
sudo ./xampp-linux-x64-7.1.21-0-installer.run
  • Make symbolic link for PHP:
ln -s /opt/lampp/bin/php /usr/bin/php
  • Test PHP from several different directories
php -v
  • Download the Composer with PHP CLI
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"

php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
  • Install the Composer with Digital Ocean way
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
  • Unlink the Composer Installer
php -r "unlink('composer-setup.php');"

That's it

JoshStrobl removed a project: Needs Maintainer.

So as much as I hate myself, I'm going to be maintaining this going forward. I need composer for dependency management as part of the Phabricator OAuth Flarum extension I'm developing.

Initial rel (rel 1) is just going to be the composer.phar in /usr/bin/composer. Rel 2 should hopefully be building the composer.phar with composer.