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



5.4k

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.