Coder Social home page Coder Social logo

ifa6 / zephir Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zephir-lang/zephir

0.0 3.0 0.0 14.06 MB

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

Home Page: http://zephir-lang.com/

License: Other

PHP 45.95% Shell 0.11% Batchfile 0.01% C 49.30% HTML 0.30% JavaScript 0.09% CSS 0.13% C++ 0.09% Zephir 4.03%

zephir's Introduction

Zephir

Dependency Status Scrutinizer Code Quality Latest Stable Version Total Downloads License ![Gitter](https://badges.gitter.im/Join Chat.svg)

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.

Main features:

  • 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:

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

Requirements

To compile zephir-parser:

  • json-c (Please install this one from Github)
  • re2c

To build the PHP extension:

  • 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.

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

Also you can just clone zephir repository and run ./install. For global installation add -c flag.

Additional notes on Ubuntu

The following packages are needed in Ubuntu:

  • apt-get install re2c libpcre3-dev

Usage

Compile the extension:

./bin/zephir compile

External Links

License

Zephir is open-sourced software licensed under the MIT License. See the LICENSE file for more information.

Contributing

See CONTRIBUTING.md for details about contributions to this repository.

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:

  • Linux: Build Status
  • Windows: Build Status

zephir's People

Contributors

andresgutierrez avatar ovr avatar carvajaldiazeduar avatar gsouf avatar racklin avatar sjinks avatar cinderella-man avatar dreamsxin avatar manhnt2 avatar dario1985 avatar green-cat avatar steffengy avatar mruz avatar ilyk avatar hylent avatar sidroberts avatar olivier-monaco avatar baszczewski avatar niden avatar korsar-zn avatar andycheg avatar odiel avatar marciopaiva avatar tmihalik avatar fezfez avatar vguardiola avatar rodrigorm avatar duythien avatar 3axap4ehko avatar panaceya avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.