How to setup Phalcon 2.x / Zephir environment and workflow?

Hi guys,

I would like to collaborate with the development of Phalcon / Zephir but I don't understand how to configure the environment or workflow that you utilize.

I use Phalcon Vagrant to develop projects but I would like if any errors appear in Phalcon/Zephir fix it or extend features and send pull request on GitHub.

I don't know what steps to take.

oscarmolinadev

edited Mar '16

So you already have installed zephir, but it's in stable build you could use just zephir command - it should return something. If not then you need to install zephir https://github.com/phalcon/zephir dont remember if it's installed in phalcon vagrant.

Still you should clone this repo even you have installed it to get all pulls etc. Do the same with https://github.com/phalcon/cphalcon

In vagrant configfile create shared folders where you will store your projects with phalcon and zephir(your forks of phalcon/zephir repositories). So finally you have something like this:

/cphalcon - your repo /zephir - your repo /root/zephir - original zephir repo /root/cphalcon - original phalcon repo

At least im using it like this.

This way you can work on your local system in your editor and using shared folders it will be updated automatically. On your VM machine.

Thanks Wojciech, done.

Workflow?

vagrant ssh and build by command every time?

So you already have installed zephir, but it's in stable build you could use just zephir command - it should return something. If not then you need to install zephir https://github.com/phalcon/zephir dont remember if it's installed in phalcon vagrant.

Still you should clone this repo even you have installed it to get all pulls etc. Do the same with https://github.com/phalcon/cphalcon

In vagrant configfile create shared folders where you will store your projects with phalcon and zephir(your forks of phalcon/zephir repositories). So finally you have something like this:

/cphalcon - your repo /zephir - your repo /root/zephir - original zephir repo /root/cphalcon - original phalcon repo

At least im using it like this.

This way you can work on your local system in your editor and using shared folders it will be updated automatically. On your VM machine.

Well - im using some ssh manager :P For me it's no problem beacause of two displays, but i guess on one it can be sloppy.

What commands you use?

Well - im using some ssh manager :P For me it's no problem beacause of two displays, but i guess on one it can be sloppy.

edited Mar '16

Just linux basic commands like cd etc.

For building phalcon use : zephir build fater zephir fullclean For building zephir use ./bin/zephir compile(after cleaning parser first)