Skip to content

Commit 95691db

Browse files
authored
Merge pull request #58 from diego-vieira/patch-1
fix markdown styling
2 parents dd8412f + fc7bcb3 commit 95691db

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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

44
A 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

5858
2. Download and install Composer.
5959

60-
```
60+
```
6161
curl -s "http://getcomposer.org/installer" | php
6262
```
6363
3. Install your dependencies.
6464

65-
```
65+
```
6666
php composer.phar install
6767
```
6868

6969
4. All the dependencies should be downloaded into a `vendor` folder.
7070

7171
5. Require Composer's autoloader.
7272

73-
```php
73+
```php
7474
<?php
7575
require_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

131131
1. Add new job.
132132

133-
```
133+
```
134134
# Form post
135135
curl -XPOST http://localhost/<QueueName>/ -d "var1=foo&var2=bar"
136136
```
137137

138-
```
138+
```
139139
# JSON post
140140
curl -XPOST http://localhost/<QueueName>/ -H "Content-Type: application/json" -d '{"var1":"foo","var2":"bar"}'
141141
```
142142

143143
2. Trigger next job.
144144

145-
```
145+
```
146146
curl -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

155155
1. Add new job.
156156

157-
```
157+
```
158158
$ php cli.php <QueueName> add --data '{"boo":"bar","foo":"car"}'
159159
```
160160

161161
2. Trigger next job.
162162

163-
```
163+
```
164164
$ php cli.php <QueueName> work
165165
```
166166

0 commit comments

Comments
 (0)