Download the PHP package ustream/daemon without Composer

On this page you can find all versions of the php package ustream/daemon. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package daemon

Ustream_Daemon Build Status

Ustream_Daemon is a library for running php code as daemons. It works around php's limitations in this area and implements some sane default behaviors. The main goal is to provide a robust way of running php code continously while decoupling the business logic from the details of running a background task. We hate superflous boilerplate like everyone else so the daemons have a common entry point.

Download

Github: http://github.com/ustream/daemon/tree/master

Composer:

composer require ustream/daemon:~0.1.0

Versioning

We follow the guidelines on http://semver.org

Features

Usage

We recommend using the library with a single entry point per project. Creating this entry point is up to you, it should bootstrap your application as you need it, then call the daemon runner class:

You can start a daemon by calling this entry point with the --id="daemon-name" parameter. The config file daemon-name.ini is used from the provided ini directory to configure the daemon.

Daemon configuration

The most important is to specify a factory method, which returns an object implementing the Ustream_Daemon_Task interface. The interface itself has only one method, doTask() - you should specify what the daemon should periodically do in this method. This is the only required element of the ini file, the others are optional.

An example configuration ini file:

Events

The daemon dispatches two events. One on startup, and one on each completion of its task. The event identifier constants are defined in the Ustream_Daemon_Event class. You can add listeners to these events via the addListeners() method. An example:

The events are dispatched via symfony's event dispatcher, which basically means that the listener object's specified method will be called with an event object as parameter. More info about this in the symfony manual

Contributing

Please see CONTRIBUTING.md for details.

Credits

Ustream_Daemon is maintained by ustream.tv, inc

Authors:

License

Ustream_Daemon is Copyright © 2013 Ustream Inc. It is free software, and may be redistributed under the terms specified in the LICENSE file.


All versions of daemon with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
ext-pcntl Version *
ext-posix Version *
psr/log Version 1.0.0
symfony/event-dispatcher Version >2.1.0,<2.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ustream/daemon contains the following files

Loading the files please wait ....