File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# PHP-Queue #
2- [ ![ Gitter] (https://badges.gitter.im/Join Chat .svg)] ( https://gitter.im/CoderKungfu/php-queue?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge )
2+ [ ![ Gitter] ( https://badges.gitter.im/Join%20Chat .svg )] ( https://gitter.im/CoderKungfu/php-queue?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge )
33
44A unified front-end for different queuing backends. Includes a REST server, CLI interface and daemon runners.
55
@@ -57,20 +57,20 @@ PHP-Queue hopes to serve as an abstract layer between your application code and
5757
58582 . Download and install Composer.
5959
60- ```
60+ ```
6161curl -s "http://getcomposer.org/installer" | php
6262```
63633 . Install your dependencies.
6464
65- ```
65+ ```
6666php composer.phar install
6767```
6868
69694 . All the dependencies should be downloaded into a ` vendor ` folder.
7070
71715 . Require Composer's autoloader.
7272
73- ```php
73+ ``` php
7474<?php
7575require_once '/path/to/vendor/autoload.php';
7676?>
@@ -130,19 +130,19 @@ Copy the `htdocs` folder in the **Demo App** into your installation. The `index.
130130
1311311 . Add new job.
132132
133- ```
133+ ```
134134# Form post
135135curl -XPOST http://localhost/<QueueName>/ -d "var1=foo&var2=bar"
136136```
137137
138- ```
138+ ```
139139# JSON post
140140curl -XPOST http://localhost/<QueueName>/ -H "Content-Type: application/json" -d '{"var1":"foo","var2":"bar"}'
141141```
142142
1431432 . Trigger next job.
144144
145- ```
145+ ```
146146curl -XPUT http://localhost/<QueueName>/
147147```
148148
@@ -154,13 +154,13 @@ Copy the `cli.php` file from the **Demo App** into your installation. This file
154154
1551551 . Add new job.
156156
157- ```
157+ ```
158158$ php cli.php <QueueName> add --data '{"boo":"bar","foo":"car"}'
159159```
160160
1611612 . Trigger next job.
162162
163- ```
163+ ```
164164$ php cli.php <QueueName> work
165165```
166166
You can’t perform that action at this time.
0 commit comments