2017 © Pedro PelĂĄez
 

library silex

This is a Skeetr implementation for Silex-based apps.

image

skeetr/silex

This is a Skeetr implementation for Silex-based apps.

  • Thursday, April 11, 2013
  • by mcuadros
  • Repository
  • 2 Watchers
  • 0 Stars
  • 7 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Skeetr Silex Provider Build Status

This is a Skeetr implementation for Silex-based apps., (*1)

Requirements

  • PHP 5.3.23
  • Unix system
  • silex/silex
  • skeetr/skeetr

Installation

The recommended way to install Skeetr/Silex is through composer. You can see package information on Packagist., (*2)

{
    "require": {
        "skeetr/silex": "dev-master"
    }
}

Parameters

  • skeetr.host (string) Gearman server hostname
  • skeetr.port (integer) Gearman server port
  • skeetr.worker (object) Skeetr\Gearman\Worker instance
  • skeetr.client (object) Skeetr\Client instance

Usage

At your Silex project create the file web/worker.php, (*3)

$app = new Silex\Application();

/* the register startup calls and config */

$app->register(new Skeetr\Silex\SkeetrServiceProvider())


$app['skeetr.host'] = '127.0.0.1';
$app['skeetr.port'] = 4730;

$app['skeetr.client']->work();

Now you can run the skeetr worker, (*4)

php web/worker.php

Tests

Tests are in the tests folder. To run them, you need PHPUnit. Example:, (*5)

$ phpunit --configuration phpunit.xml.dist

License

MIT, see LICENSE, (*6)

The Versions

11/04 2013

dev-master

9999999-dev http://github.com/skeetr/silex

This is a Skeetr implementation for Silex-based apps.

  Sources   Download

MIT

The Requires

 

The Development Requires