Volt template engine from Phalcon, Designer friendly and fast template engine for PHP written in Zephir/C.
Volt is written in Zephir/C with platform independence in mind.
On a Unix-based platform you can easily compile and install the extension from sources.
Prerequisite packages are:
- PHP 7.0.x development resources
- GCC compiler (Linux/Solaris/FreeBSD) or Xcode (MacOS)
re2c
- Phalcon7
Ubuntu:
sudo apt-get install re2c php5-dev libpcre3-dev gcc make
Follow these instructions to generate a binary extension for your platform:
git clone https://github.com/dreamsxin/phalcon7-zephir.git
cd zephir/parser/parser
./build_linux.sh
cd zephir/parser
phpize && ./configure && make -j4 && sudo make install # 编译安装成功后,配置 extension=zephir_parser.so
git clone https://github.com/dreamsxin/volt.git
cd volt
../zephir/bin/zephir compile
cd ext
make
make install
Add the extension to your php.ini:
extension=volt.so
Finally, restart the web server.
Phalcon Framework is built under the Travis CI service. Every commit pushed to this repository will queue a build into the continuous integration service and will run all PHPUnit tests to ensure that everything is going well and the project is stable. The current build status is:
Volt is open source software licensed under the New BSD License. See the docs/LICENSE.txt file for more