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.
Tarball: https://github.com/composer/composer/archive/1.5.5.tar.gz
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.
Tarball: https://github.com/composer/composer/archive/1.5.5.tar.gz
| R4676 composer | |||
| R4676:fd078005236a Initial inclusion of Composer. | |||
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.
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
ln -s /opt/lampp/bin/php /usr/bin/php
php -v
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;"sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
php -r "unlink('composer-setup.php');"That's it
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.