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

Future scope: ability to install any missing extensions for a project using pie install #13

Open
asgrim opened this issue Mar 25, 2024 · 1 comment
Labels
question Further information is requested

Comments

@asgrim
Copy link
Collaborator

asgrim commented Mar 25, 2024

A nice end user improvement in the future, could be something like:

Given a project has a `composer.json` which has dependencies on extensions
When I run `pie install` (with no other parameters)
Then PIE will check `composer.json` for the project's dependencies and install anything missing

So, for example a project depends on ext-json, ext-foo, and ext-imap. Lets say only ext-json exists on the system PHP install. When you run pie install (with no other parameters), it could list the required extensions by the project, and either prompt, or automatically install missing ones, so a hypothetical execution might look like:

$ cat composer.json
{
    "require": {
        "ext-json": "*",
        "ext-foo": "*",
        "ext-imap": "*",
    }
}
$ pie install
Checking currently installed extensions...
 - ✅ ext-json
 - ⚠️ ext-foo - missing
 - ⚠️ ext-imap - missing

Would you like to install ext-foo? The following extensions may be compatible:
  1. user1/foo
  2. user2/foo
Select the extension to install: 1
<installs `user1/foo` - equivalent of `pie install user1/foo`>

Would you like to install ext-imap? The following extensions may be compatible:
  1. php/imap
  2. someone-else/imap
Select the extension to install: 1
<installs `php/imap` - equivalent of `pie install php/imap`>

Re-checking currently installed extensions...
✅ All extensions required by the composer.json are now installed!
$
@asgrim asgrim added the enhancement New feature or request label Mar 25, 2024
@asgrim asgrim changed the title [Future idea] Ability to install any missing extensions for a project using pie install Future scope: bility to install any missing extensions for a project using pie install Mar 25, 2024
@asgrim asgrim changed the title Future scope: bility to install any missing extensions for a project using pie install Future scope: ability to install any missing extensions for a project using pie install Mar 25, 2024
@Tomyh99095

This comment was marked as spam.

@asgrim asgrim added question Further information is requested and removed enhancement New feature or request labels May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants