Giter VIP home page Giter VIP logo

forkdaemon-php's Introduction

PHP Fork Daemon

A library to make setup and management of forking daemons in PHP easy.

Features

  • Easy management of PHP forks
  • Return result of children by callback or polling parent for results
  • Splitting work units into buckets
  • Preforking callbacks to manage resources before forking
  • Dynamic setting of number of children / work per child

Usage

Check out the examples in the examples directory php example/blocking.php

Caveats

  • You need to specify declare(ticks=1); before inclusion of the fork-daemon library, otherwise signals wont be handled. This must be done in the main PHP file, as declare(ticks=N); only works for the file in which it is declared and the files which that file includes. Reference: PHP Documentation

License

Copyright 2013 Barracuda Networks, Inc. Licensed under the MIT License

forkdaemon-php's People

Contributors

ablyler avatar bn-dstoddard avatar bn-eolson avatar bn-mvalentin avatar jkup avatar johnmaguire avatar meowvalent avatar pmccarren avatar pvitaly avatar ronytomen avatar solonrice avatar zacherystuart 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.