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

can not build phalcon 3.0.x for php 7.0.13 (MAMP 5.1) MACOS

Hi them ... It was necessary to take in the development of the old project:

PHP Version 7.0.32-0ubuntu0.16.04.1

phalcon Version 3.0.3

Build Date May 31 2017 14:42:03

Powered by Zephir Version 0.9.5a-dev

I tryed build phalcon 3.0 in local env for MAMP 5.1

Mamp has php 7.0.13 - its ok - will do


mkdir /Applications/MAMP/bin/php/php7.0.31/include


and donwload sources php 7.0.13 &unzip ...

cd /Applications/MAMP/bin/php/php7.0.31/include/php/ext/

clone git://github.com/phalcon/cphalcon.git

cd cphalcon/

git fetch

git checkout 3.0.x

git pull ( maybe =) )



cd /Applications/MAMP/bin/php/php7.0.31/include/php/ext/cphalcon/build/php7/64bits

./configure --with-php-config=/Applications/MAMP/bin/php/php7.0.31/bin/php-config

make test

sudo make install clean

done, restart, clean, check phpinfo ... and he showed me: phalcon Version 3.4.1 !!! /Applications/MAMP/bin/php/php7.0.31/bin/php -i - 3.4.1 !!!

and trys next way by manual (in install.sh) install ...

cd /Applications/MAMP/bin/php/php7.0.31/include/php/ext/cphalcon/build/

sudo ./install --phpize /Applications/MAMP/bin/php/php7.0.31/bin/phpize --php-config /Applications/MAMP/bin/php/php7.0.31/bin/php-config


Build complete. Don't forget to run 'make test'.

Installing shared extensions: /Applications/MAMP/bin/php/php7.0.31/lib/php/extensions/no-debug-non-zts-20151012/ Installing header files: /Applications/MAMP/bin/php/php7.0.31/include/php/

Thanks for compiling Phalcon! Build succeed: Please restart your web server to complete the installation

added ext...=phalcon.so in php.ini and in mamp conf to.

check /Applications/MAMP/bin/php/php7.0.31/bin/php -i Version 3.4.1 Build Date Sep 25 2018 16:32:49 Powered by Zephir Version 0.10.10-d1b4cc68d9 in mamp after restart to same version

Phalcon builded 3.4 for php 7.0.13 .... in branch 3.0.x

What am I doing wrong? how do I build an older version?

edited Sep '18

You want to check out this tag:


Or just download here sources and compile it: https://github.com/phalcon/cphalcon/releases/tag/v3.0.3


P.S. you don't need to have exact same version, you can use latest 3.0.x release, which was https://github.com/phalcon/cphalcon/releases/tag/v3.0.4


yes ! happened

downloaded https://github.com/phalcon/cphalcon/archive/v3.0.3.tar.gz and make ...

cd /Applications/MAMP/bin/php/php7.0.31/include/php/ext/cphalcon wget https://github.com/phalcon/cphalcon/archive/v3.0.3.tar.gz tar -xvzf v3.0.3.tar.gz /Applications/MAMP/bin/php/php7.0.31/bin/phpize ./configure --with-php-config=/Applications/MAMP/bin/php/php7.0.31/bin/php-config sudo make install clean

phalcon Web framework delivered as a C-extension for PHP phalcon => enabled Author => Phalcon Team and contributors Version => 3.0.3 Build Date => Oct 1 2018 12:47:38 Powered by Zephir => Version 0.9.5a-dev

but why did the old version of branch 3.0.x? interesting ...

thanks ..