install:

sudo apt-get install git gcc make re2c php5 php5-json php5-dev libpcre3-dev
 
git clone https://github.com/json-c/json-c.git && cd json-c && sh
autogen.sh && ./configure && make && sudo make install
 
git clone https://github.com/phalcon/zephir && cd zephir && ./install -c
 
zephir version
zephir init type
zephir build

file StringType.zep

namespace Type;
class StringType {
    protected data;
    public function __construct(var data) {
        let this->data = data;
    }
    public function length() {
        return strlen(this->data);
    }
}