why won't tutorials run - Phalcon 4.0.6 - PHP 7.4.2 - MAMP

I just installed phalcon version 4.0.6 and psr and they display in phpinfo();

To test the new setup i am trying to run the tutorials but getting errors.

basic - is old and prior to version 4 - https://github.com/phalcon/tutorial

Invo - the vendor/autoload.php is not in the project folder

vokuro - the vendor/autoload.php is not in the project folder

For invo and vokuro am getting this browser error:

This page isn’t working localhost is currently unable to handle this request. HTTP ERROR 500

For invo and vokuro am getting this error in php_error.log:

[21-Aug-2020 01:15:20 UTC] PHP Fatal error: require_once(): Failed opening required '/Applications/MAMP/htdocs/vokuro/vendor/autoload.php' (include_path='.:/Applications/MAMP/bin/php/php7.4.2/lib/php') in /Applications/MAMP/htdocs/vokuro/public/index.php on line 18 .

Any ideas?

Thanks.

edited Aug '20

you can create the project via the dev tools

  • 1 add phalcon & psr extensions to your php installtation
  • 2, composer global require phalcon/devtools
  • 3, phalcon create-project myproject
  • happy coding ;)


126

Almost PHP projects use composer (https://getcomposer.org).

You must install composer and run the command composer install to install the php dependencies which invo/vokuro needs