Giter Site home page Giter Site logo

weierophinney / swoole-src Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openswoole/ext-openswoole

2.0 1.0 0.0 46.06 MB

Programmatic Server for PHP with Async IO, Coroutines and Fibers: Secure, Reliable, High performance

Home Page: https://www.swoole.co.uk

License: Apache License 2.0

Dockerfile 0.04% CMake 0.15% Makefile 0.01% Shell 0.22% M4 0.58% C++ 58.80% C 3.55% PHP 36.49% Python 0.06% Go 0.01% JavaScript 0.01% PLpgSQL 0.09%

swoole-src's Introduction

Swoole Logo

lib-openswoole ext-openswoole test-linux Coverity Scan Build Status codecov

Open Swoole is an event-driven asynchronous & coroutine-based concurrency networking communication engine with high performance written in C++ for PHP.

Documentation & Community

Installation

As with any open source project, Open Swoole always provides the most reliable stability and the most powerful features in the latest released version. Please ensure as much as possible that you are using the latest version.

Compiling requirements

  • Linux, OS X or Cygwin, WSL
  • PHP 7.2.0 or later (The higher the version, the better the performance.)
  • GCC 4.8 or later

1. Install via PECL (beginners)

pecl install openswoole

2. Install from source (recommended)

Please download the source packages from Releases or:

git clone https://github.com/openswoole/swoole-src.git && \
cd swoole-src
git checkout v4.7.2

Compile and install at the source folder:

phpize && \
./configure && \
make && make install

Enable extension in PHP

After compiling and installing to the system successfully, you have to add a new line extension=openswoole.so to php.ini to enable Open Swoole extension. It is recommended to be added after all the other extensions because openswoole may depend on extensions: sockets, mysqlnd, curl etc.

Extra compiler configurations

for example: ./configure --enable-openssl --enable-sockets

  • --enable-openssl or --with-openssl-dir=DIR
  • --enable-sockets
  • --enable-http2
  • --enable-mysqlnd (need mysqlnd, it just for supporting $mysql->escape method)
  • --enable-swoole-json
  • --enable-swoole-curl

Upgrade

If you upgrade from source, don't forget to make clean before you upgrade your swoole

  1. pecl upgrade openswoole
  2. cd swoole-src && git pull && make clean && make && sudo make install
  3. if you change your PHP version, please re-run phpize clean && phpize then try to compile

Contribution

Your contributions to Open Swoole development are welcome.

Contributors

This project exists thanks to all the contributors who contribute to the orignal Swoole project. [Contributors].

Security issues

Security issues should be reported privately, via email, to the Open Swoole develop team [email protected]. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message.

Frameworks & Components

PR are welcome if your framework is using openswoole

  • Laravel Octane Laravel Octane supercharges your application's performance by serving your application using high-powered application servers.
  • PHP Runtime make it easy to run any kind of PHP Application (Symfony, Laravel, PSR7, Native) with all kind of Runtimes like OpenSwoole, Bref, Google Cloud Functions, Roadrunner and React PHP with minimal configuration.

License

Apache License Version 2.0 see http://www.apache.org/licenses/LICENSE-2.0.html

swoole-src's People

Contributors

matyhtf avatar twose avatar shiguangqi avatar doubaokun avatar gxhua avatar huanghantao avatar shenzhe avatar windrunner414 avatar xyzhu1120 avatar inokinoki avatar yunnian avatar sy-records avatar yurunsoft avatar remicollet avatar betashepherd avatar artem-from-ua avatar bixuehujin avatar taobao-php avatar recoye avatar sshymko avatar wenxuanguan avatar devnexen avatar petk avatar limingxinleo avatar dryangkun avatar kiss291323003 avatar ixqbar avatar kimkit avatar junwei-qu avatar yangxikun avatar

Stargazers

 avatar Dana Delilah Burns 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.