I have just completed the first pass of my CLI app which I wrote using Laravel Zero. Laravel Zero is a micro-framework for building console applications. It is based on PHP and uses Laravel and Symfony components.
I’m stuck and don’t know how to add PHP as a dependency.
You’ll need the PHP section as well as the PHP plugin if you care about building modules. If you don’t you can probably get away with using the built-in autotools plugin and modifying the YAML you’re copying slightly.
This seems to have changed since that error was raised. It’s due to your app command starting with php, although your snapcraft.yaml doesn’t appear to have that anymore. Did you modify it for posting here? Regardless, try changing it to command: bin/php <whatever> instead of what you were using.
One problem though
command: bin/php app is causing problem.
After successfully building the snap when i install and run the app command, it gives this error: