Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phalcon on PHP7?

Tags:

php

php-7

phalcon

Is PhalconPHP 2.0.10 extension supports PHP 7?

I'm planning to start learning Phalcon and I want to run it in PHP 7. I can't find an article or a blog that says Phalcon can run on PHP 7.

like image 316
Ram Avatar asked Apr 09 '16 07:04

Ram


People also ask

How do I know if Phalcon is installed?

To check if Phalcon has been successfully installed, you'll need to check the output of phpinfo() statement. If you don't know how to proceed, create a file called info. php somewhere where you can access it from the browser and paste in the following line: <?

What is phalcon used for?

Phalcon is used to design variety of projects. Yii supports all relational and non-relational databases. Laravel supports all relational databases. Phalcon gives equal support to relational and non-relational databases.

Is phalcon a MVC?

Phalcon is a PHP web framework based on the model–view–controller (MVC) pattern.


2 Answers

The upcoming version Phalcon 2.1 (as of writing is RC1) will have beta PHP7 compatibility

Phalcon 2.1.x has beta PHP7 support, we expect to fix any blocking bug in the next two weeks before the final release. You can try Phalcon running on PHP7 by compiling from the 2.1.x branch using Zephir:

git clone http://github.com/phalcon/cphalcon
cd cphalcon
git checkout 2.1.x
zephir build --backend=ZendEngine3

Reference: https://blog.phalconphp.com/


UPDATE

Due to the many changes in Phalcon 2.1, this version won't be backwards compatible with older versions. Therefor the Phalcon development team decided to skip version 2.1 and continue on 3.0.

And of course Phalcon 3.0 is now PHP7 compatible.

like image 110
Timothy Avatar answered Oct 18 '22 00:10

Timothy


There are many bugs in phalcon with php7. You shouldn't use it in production.

Still phalcon even with php 5.x is fastest php framework possible.

2.1.x version is partially supporting it, you have to compile it with newest zephir compiler though(master branch)

like image 38
Juri Avatar answered Oct 18 '22 02:10

Juri