Skip to content

Designer friendly and fast template engine for PHP written in Zephir/C

Notifications You must be signed in to change notification settings

dreamsxin/phalcon-volt

Repository files navigation

Volt Template Engine

Volt template engine from Phalcon, Designer friendly and fast template engine for PHP written in Zephir/C.

Get Started

Volt is written in Zephir/C with platform independence in mind.

Linux/Unix/Mac

On a Unix-based platform you can easily compile and install the extension from sources.

Requirements

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

General Compilation

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.

External Links

Current Build Status

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:

Build Status

License

Volt is open source software licensed under the New BSD License. See the docs/LICENSE.txt file for more

About

Designer friendly and fast template engine for PHP written in Zephir/C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published