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

Allow executing php files without installing additional php interpreter #1

Open
pronskiy opened this issue Apr 23, 2024 · 0 comments
Open

Comments

@pronskiy
Copy link
Owner

Suggested by @marco-introini:

Something like "if the first parameter is not in phpup list of commands execute vendor/bin/php passing the argument". I don't know if it makes sense.
In this way, we can be up and running in very few steps:

phpup composer init
<add PHP version in composer.json>
phpup locus
<create my first PHP file>
phpup myFile.php (as an extra: maybe this can execute phpup locus if no PHP binary is found inside the vendor directory)

Better yet, maybe creating a new init command can reduce the effort:
phpup init
can: make composer init, add PHP version in composer.json, execute phpup locus

In this way to create a new project:

phpup init 8.3
<create myFile.php>
phpup myFile.php
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