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

How to install phalcon 1.x

I am planning to migrate the legacy PHP Phalcon v1 project to a modern PHP project. The current production environment is PHP5, Phalcon v1.3.

If possible, I want to build a development environment locally for Phalcon v1.3. Is there any way left for me to install the legacy Phalcon v1?

I understand the resources published online are v3 and above.

Any help will be appreciated.



58.3k
Accepted
answer

Hello

You can clone this repo by tag: https://github.com/phalcon/cphalcon/tree/phalcon-v1.3.3, then running command below to compile

cd cphalcon/build
sudo ./install

Thank you.

After that I emailed the team. The reply is as follows:


Honestly it is going to be a bit difficult for you to install v1.3 on a local or development machine because it is very old. The last version of v1.3 was released in 2014.

You will first need to have PHP 5.5, since v1.x does not work with PHP 7. Then you will need to install Phalcon following the instructions here (readme)

https://github.com/phalcon/cphalcon/tree/33e85f551c253ddff58e594e2bace5c2e55f12ef

The tag for GitHub is:

https://github.com/phalcon/cphalcon/releases/tag/phalcon-v1.3.4

I think your best bet is to rewrite the whole thing by just looking at the code, using the v4 codebase and then replicating what your production has. It should not be that difficult to do but then again I do not know the complexity of your application.