We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Using composer with phalcon

Hello everyone, I was interested what is the best way to use composer with phalcon? Meaning where should I put my vendor folder and where to require the composer's autoloader. Can I use composer to create a phalcon project skeleton? What package should I use from the packagist? Thanks in advance


Hi. The Vokuro sample application, by the Phalcon team, uses composer. They put the vendor folder in /app and require the autoloader in /app/config/loader.php

Personally, I leave the "vendor" folder in the root of the project and simply require it in "loader.php". Works fine for me.