Software: MacOS
Phalcon: 5.0.0RC4
Phalcon/Devtools: 4.2.0
I have newly created phalcon 5.0 repository. I successfully ran
composer install
composer require phalcon/devtools
however when I try to run a phalcon command I get
zsh: command not found: phalcon
I checked if it had installed successfully and tried reinstalling as well.
php -m returns that phalcon is installed too:
php -m | grep phalcon
phalcon
and the extension is there in the php.ini file
extension="phalcon.so"
Am I missing anything?
The
phalcon/devtoolspackage links thephalcon.phpexecutable to your composerbin-dir.Get it as follows:
It defaults to
./vendor/bin. The installed symlink is./vendor/bin/phalcon.php.You can run the command as follows:
To ease access you can automatically add
./vendor/binto yourPATH(i.e. with direnv)or you can create a
./bindir in your project directory and symlinkphalcon.phpasphalconinto it.Now you can add
./binto yourPATH:And invoke the phalcon CLI with: