Use a bash script:
#!/bin/bash
/usr/local/php/bin/php /wherebehatis/behar.phar "$@"
give the script "behat" name and put it in a folder into the PATH, like /usr/local/sbin
Question
I can run behat by
php behat.phar
How can I run(like in the manual) by using only
behat
I suppose I can
chmod +x behat.phar
mv behat.phar /usr/local/bin/behat
No go.
I suppose I can
ln -s /wherebehatis/behar.phar /usr/local/bin/behat
No go either.
So what can I do?
Solution
Use a bash script:
#!/bin/bash
/usr/local/php/bin/php /wherebehatis/behar.phar "$@"
give the script "behat" name and put it in a folder into the PATH, like /usr/local/sbin