Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

[FR] Add "nitro php" as command #276

Closed
naboo opened this issue Mar 5, 2021 · 1 comment
Closed

[FR] Add "nitro php" as command #276

naboo opened this issue Mar 5, 2021 · 1 comment
Assignees
Labels
enhancement Not really required but improves quality of life

Comments

@naboo
Copy link

naboo commented Mar 5, 2021

Description

It would be nice to be able to run the php command through the nitro command as you would with "nitro craft".

Why?

As an example. I had this Craft site with a Laravel independent "module". In Laravel you have this "artisan" CLI as you do with Yii/Crafts "craft" CLI. I had to locally install PHP in my distro to run it. It would be nice to have this native inside Nitro from the start - since the php library is there existing.

@naboo naboo added the enhancement Not really required but improves quality of life label Mar 5, 2021
@jasonmccallister jasonmccallister self-assigned this Mar 5, 2021
@jasonmccallister
Copy link
Contributor

Thank you for the suggestion, I think this makes a lot of sense to add. You can still run the artistan command by adding another step:

  1. nitro ssh
  2. php artisan

Ideally this would work exactly the same as the craft and queue commands by being "site aware" and defaulting to a help style output (e.g. nitro php would run php -v).

We will take a look at setting this up and testing locally!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Not really required but improves quality of life
Projects
None yet
Development

No branches or pull requests

2 participants