GithubHelp home page GithubHelp logo

classicvalues / pecl-networking-gearman Goto Github PK

View Code? Open in Web Editor NEW

This project forked from php/pecl-networking-gearman

1.0 1.0 0.0 798 KB

PHP wrapper to libgearman

Home Page: https://pecl.php.net/package/gearman

License: Other

M4 0.83% Shell 0.43% C 60.43% PHP 38.30%

pecl-networking-gearman's Introduction

The Gearman PHP Extension provides a wrapper to libgearman. This
gives the user the ability to write fully featured Gearman clients
and workers in PHP, allowing them to quickly develop distributed
applications.

For more information about Gearman, see: http://www.gearman.org/

Requirements
    * For the 0.8.* versions, libgearman v0.14 or greater
    * For the 1.0.* versions, libgearman v0.21 or greater
    * For the 1.1.* versions, libgearman v1.1.0 or greater
    * For the 2.0.* versions, testing is done against libgearman v1.1.8 and PHP 7.0-7.4
    * For the 2.1.* versions, testing is done against libgearman v1.1.18 and PHP 7.0-8.0

The Gearman PHP Extension requires the Gearman C server and library package
to be installed. You can download the latest from:

https://github.com/gearman/gearmand/releases

See the README file in that package for installation instructions. Once
it is installed you can compile the Gearman PHP Extension. You'll need
to make sure you have the PHP development packages installed first
(if you have 'phpize' command you’re all set). You'll also probably
want the PHP command line interface installed as well (usually named
php-cli). After extracting the Gearman PHP tarball, just run:

phpize
./configure
make
make install

You then need to make PHP aware of the new extension by adding the
following line to your php.ini:

extension="gearman.so"

You can then test if the modlue is configure correctly with the
PHP cli:

php --info | grep gearman

To run a simple example

cd examples

1. Start the gearmand server in a seperate terminal

gearmand


2. In another terminal, change to this source directory and run:

php examples/reverse_worker.php


3. In another terminal, change to this source directory and run:

php examples/reverse_client.php


You should see some output from both the reverse client and worker
scripts about the status and then a final result.


Have fun!

http://pecl.php.net/package/gearman

pecl-networking-gearman's People

Contributors

andypost avatar bjori avatar bolknote avatar chrisgoffinet avatar felipensp avatar guilhermeblanco avatar hjr3 avatar jaredwilliams avatar keyurdg avatar oleg-st avatar oligriffiths avatar remicollet avatar rlerdorf avatar rosmo avatar sean-der avatar vesa-hirsimaa-crasman avatar wcgallego avatar wgallego-fastly avatar xalopp avatar

Stargazers

 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.