Skip to content

More complete example for web-based use #23

@fiammybe

Description

@fiammybe

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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions