Coder Social home page Coder Social logo

zkyy66 / cphalcon Goto Github PK

View Code? Open in Web Editor NEW

This project forked from phalcon/cphalcon

0.0 1.0 0.0 130.07 MB

High performance, full-stack PHP framework delivered as a C extension.

Home Page: https://phalconphp.com

PHP 55.78% Zephir 43.75% Shell 0.23% CSS 0.01% JavaScript 0.01% HTML 0.04% Volt 0.20%

cphalcon's Introduction

Phalcon Framework

Build Status Windows Build Phalcon Backers OpenCollective OpenCollective

Phalcon is an open source web framework delivered as a C extension for the PHP language providing high performance and lower resource consumption.

A big thank you to our Backers; you rock!

Get Started

Phalcon is written in Zephir/C with platform independence in mind. As a result, Phalcon is available on Microsoft Windows, GNU/Linux, FreeBSD and MacOS. You can either download a binary package for the system of your choice or build it from source.

Windows

To install Phalcon on Windows:

  1. Download Phalcon for Windows
  2. Extract the DLL file and copy it to your PHP extensions directory
  3. Edit your php.ini file and add this line:
    extension=php_phalcon.dll
  4. Finally, restart your web server

Hint: To ensure that your Phalcon installation was successful, debug with

<?php phpinfo(); ?>

and search for a section mentioning the Phalcon extension.

Linux/Unix/Mac

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

Requirements

Prerequisite packages are:

  • PHP 5.5.x/5.6.x/7.0.x/7.1.x development resources (PHP 5.3 and 5.4 are no longer supported)
  • g++ >= 4.4 | clang++ >= 3.x | vc++ >= 11
  • GNU make >= 3.81
  • re2c >= 0.13

Ubuntu:

# Use actual PHP development headers and tools here
sudo apt-get install php5-dev libpcre3-dev gcc make re2c

Suse:

# Use actual PHP development headers and tools here
sudo zypper install php5-devel gcc make re2c

CentOS/Fedora/RHEL

# Use actual PHP development headers and tools here
sudo yum install php-devel pcre-devel gcc make re2c

Compilation

Follow these instructions to generate a binary extension for your platform:

git clone git://github.com/phalcon/cphalcon.git
cd cphalcon/build
sudo ./install

If you have specific php versions running

git clone https://github.com/phalcon/cphalcon
cd cphalcon/build
sudo ./install --phpize /usr/bin/phpize5.6 --php-config /usr/bin/php-config5.6

Add the extension to your php.ini:

extension=phalcon.so

Finally, restart the web server.

Contributing

Tests are located in tests/ and use Codeception. Test classes should follow the PSR-2 coding style guide.

OSX MAMP ready extensions

https://github.com/majksner/php-phalcon-mamp

Gentoo

https://github.com/smoke/phalcon-gentoo-overlay

External Links

Meet the Incubator

Our community is developing amazing extra features for Phalcon every day via Incubator. There are resources to enhance your experience with the framework and that enlarge the main features.

Just give it a try and help us improve Phalcon even more!

Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]

Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

License

Phalcon is open source software licensed under the New BSD License. See the docs/LICENSE.txt file for more or visit our license page.

cphalcon's People

Contributors

akanightmare avatar andresgutierrez avatar carvajaldiazeduar avatar cinderella-man avatar destinymkas avatar dreamsxin avatar dugwood avatar green-cat avatar jerejones avatar jurigag avatar kenjikobe avatar korsar-zn avatar marciopaiva avatar mattvb91 avatar maxgalbu avatar mruz avatar myleft avatar niden avatar odiel avatar olivier-monaco avatar ovr avatar patrick-zippenfenig avatar racklin avatar rianorie avatar sergeyklay avatar sidroberts avatar sjinks avatar tmihalik avatar vlad-khramov avatar xboston avatar

Watchers

 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.