Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More complete example for web-based use #23

Open
fiammybe opened this issue Feb 14, 2019 · 0 comments
Open

More complete example for web-based use #23

fiammybe opened this issue Feb 14, 2019 · 0 comments

Comments

@fiammybe
Copy link

Hi,
I'm trying to use composer as part of a web page in the administration section of ImpressCMS (https://github.com/impresscms/impresscms).
We are rewriting key parts of ImpressCMS , a PHP-based CMS that is aimed primarily at people that do not use command-lines and which runs well on shared hosting. Instead of reinventing the wheel, we would like to use composer as package manager for our ImpressCMS addon packages. Part of that is already working from the command-line, but now I wanted to get that available from a web page in the administration section as well.

Basically, I want to be able to do the following things with Composer :

  • install a package from packagist
  • uninstall a package
  • update a package
  • list installed packages and their versions
  • check for updates from the installed packages

I saw there were 'install, update and dumpautoload' commands defined, but I can't seem to get a minimal example up and running that gets me a working composer with a standard composer.json in the root, and work from there. Could you point me out where I can find such an example (our where it is used in that way)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant