We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

ERROR : Phalcon installation on Mac

Hi all,
I am very new to mac and Phalcon Framwork.

         I had issue with namespace undefined ( public\index.php)
         both did not work for me
         use Phalcon\Loader;      or use \Phalcon\Loader();

         I use these command line to install Phalcon
        ** brew tap homebrew/dupes
        brew tap homebrew/versions
        brew tap homebrew/php
        brew install php54 php54-phalcon**                    XAMPP 1.8.2.-6 

        then I change directroy to Applications/XAMPP/htdocs then use these commands line 
        git clone --depth=1 git://github.com/phalcon/cphalcon.git
        cd cphalcon/build
        sudo ./install

        but if i add 
        extension=phalcon.so            which does not work
        extension="usr/local/php/.........."  which work ... i can see it from phpinfo(); and can also see the extension
        <?php print_r(get_loaded_extensions()); ?>

        but from (public /index.php)
        I had issue with namespace undefined ..




First check your php version

php -v

Second if you are using MAMP server then you need to install php through binary

here is the useful link