2017 © Pedro Peláez
 

library zephir

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

image

izmanw/zephir

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  • Thursday, November 3, 2016
  • by mervick
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • C
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 30 Versions
  • 0 % Grown

The README.md

Zephir

Dependency Status Latest Stable Version Total Downloads License, (*1)

Zephir - Ze(nd Engine) Ph(p) I(nt)r(mediate) - is a high level language that eases the creation and maintainability of extensions for PHP. Zephir extensions are exported to C code that can be compiled and optimized by major C compilers such as gcc/clang/vc++. Functionality is exposed to the PHP language., (*2)

Main features:, (*3)

  • Both dynamic/static typing
  • Reduced execution overhead compared with full interpretation
  • Restricted procedural programming, promoting OOP
  • Memory safety
  • Ahead-of-time (AOT) compiler to provide predictable performance

Compiler design goals:, (*4)

  • Multi-pass compilation
  • Type speculation/inference
  • Allow runtime profile-guided optimizations, pseudo-constant propagation and indirect/virtual function inlining

Requirements

To compile zephir-parser:, (*5)

To build the PHP extension:, (*6)

  • g++ >= 4.4/clang++ >= 3.x/vc++ 9
  • gnu make 3.81 or later
  • php development headers and tools

Installation

You can install zephir using composer. Run composer require phalcon/zephir, run ./install and then run zephir from your bin-dir. By default it is ./vendor/bin/zephir. You can read more about composer binaries in it's documentation., (*7)

For global installation via composer you can use composer global require. Do not forget add ~/.composer/vendor/bin into your $PATH., (*8)

Also you can just clone zephir repository and run ./install. For global installation add -c flag., (*9)

Additional notes on Ubuntu

The following packages are needed in Ubuntu:, (*10)

  • apt-get install re2c libpcre3-dev

Usage

Compile the extension:, (*11)

./bin/zephir compile

License

Zephir is open-sourced software licensed under the MIT License. See the LICENSE file for more information., (*12)

Contributing

See CONTRIBUTING.md for details about contributions to this repository., (*13)

Current Build Status

Zephir is built under 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:, (*14)

  • Linux: Build Status
  • Windows: Build status

The Versions

03/11 2016

dev-master

9999999-dev http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-json *
  • ext-hash *
  • ext-ctype *
  • ext-xml *

 

The Development Requires

extension

08/08 2016

0.9.4

0.9.4.0 http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-json *
  • ext-hash *
  • ext-ctype *

 

The Development Requires

extension

11/06 2016

0.9.3

0.9.3.0 http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-json *
  • ext-hash *
  • ext-ctype *

 

The Development Requires

extension

21/04 2016

0.9.2

0.9.2.0 http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-json *
  • ext-hash *
  • ext-ctype *

 

The Development Requires

extension

18/09 2015

0.8.0

0.8.0.0 http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-json *
  • ext-hash *
  • ext-ctype *

 

The Development Requires

extension

15/07 2015

0.7.1

0.7.1.0 http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-json *
  • ext-hash *
  • ext-ctype *

 

The Development Requires

extension

09/06 2015

0.7.0

0.7.0.0 http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-json *
  • ext-hash *
  • ext-ctype *

 

The Development Requires

extension

19/04 2015

v0.2.0

0.2.0.0 http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-json *
  • ext-hash *
  • ext-ctype *

 

The Development Requires

extension

01/04 2015

0.6.1

0.6.1.0 http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-json *
  • ext-hash *
  • ext-ctype *

 

The Development Requires

extension

23/02 2015

0.6.0

0.6.0.0 http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php ~5.3
  • ext-json *
  • ext-hash *
  • ext-ctype *

 

The Development Requires

extension

18/11 2014

0.5.9

0.5.9.0 http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php ~5.3
  • ext-json *
  • ext-hash *
  • ext-ctype *

 

The Development Requires

extension

03/11 2014

0.5.8

0.5.8.0 http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php ~5.3
  • ext-json *
  • ext-hash *
  • ext-ctype *

 

The Development Requires

extension

26/10 2014

0.5.7

0.5.7.0 http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php ~5.3
  • ext-json *
  • ext-hash *
  • ext-ctype *

 

The Development Requires

extension

24/10 2014

0.5.6

0.5.6.0 http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php ~5.3
  • ext-json *
  • ext-hash *
  • ext-ctype *

 

The Development Requires

extension

24/10 2014

0.5.5

0.5.5.0 http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php ~5.3
  • ext-json *
  • ext-hash *
  • ext-ctype *

 

The Development Requires

extension

18/10 2014

0.5.4

0.5.4.0 http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php ~5.3
  • ext-json *
  • ext-hash *
  • ext-ctype *

 

The Development Requires

extension

18/10 2014

0.5.3

0.5.3.0 http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php ~5.3
  • ext-json *
  • ext-hash *
  • ext-ctype *

 

The Development Requires

extension

22/09 2014

0.5.2

0.5.2.0 http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php ~5.3
  • ext-json *

 

The Development Requires

extension

18/09 2014

0.5.1

0.5.1.0 http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php ~5.3
  • ext-json *

 

The Development Requires

extension

14/09 2014

0.5.0

0.5.0.0 http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php ~5.3
  • ext-json *

 

The Development Requires

extension

22/08 2014

0.4.6

0.4.6.0 http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php ~5.3
  • ext-json *

 

The Development Requires

extension

14/08 2014

0.4.5

0.4.5.0 http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php ~5.3
  • ext-json *

 

The Development Requires

extension

04/08 2014

0.4.4

0.4.4.0 http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php ~5.3
  • ext-json *

 

The Development Requires

extension

26/07 2014

0.4.3

0.4.3.0 http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php ~5.3
  • ext-json *

 

The Development Requires

extension

15/05 2014

0.4.2a

0.4.2.0-alpha http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php ~5.3
  • ext-json *

 

The Development Requires

extension

03/04 2014

0.4.1

0.4.1.0 http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php ~5.3
  • ext-json *

 

The Development Requires

extension

23/03 2014

0.4.0a

0.4.0.0-alpha http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php ~5.3
  • ext-json *

 

The Development Requires

extension

26/02 2014

0.3.10a

0.3.10.0-alpha http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php ~5.3
  • ext-json *

 

The Development Requires

extension

17/02 2014

0.3.7a

0.3.7.0-alpha http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php ~5.3

 

extension

15/02 2014

0.3.5a

0.3.5.0-alpha http://zephir-lang.com/

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

  Sources   Download

MIT

The Requires

  • php ~5.3

 

extension