Skip to content

Commit 8479825

Browse files
committed
Updated files to act as a standalone component
1 parent 5631171 commit 8479825

File tree

10 files changed

+24
-3
lines changed

10 files changed

+24
-3
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
composer.lock
2+
vendor

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: php
2+
3+
php:
4+
- 5.4
5+
- 5.5
6+
- 5.6
7+
- hhvm
8+
9+
matrix:
10+
allow_failures:
11+
- php: hhvm
12+
13+
before_script:
14+
- composer install --dev --prefer-source

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Http Component
22

3+
[![Build Status](https://secure.travis-ci.org/reactphp/http.png?branch=master)](http://travis-ci.org/reactphp/http)
4+
35
Library for building an evented http server.
46

57
This component builds on top of the `Socket` component to implement HTTP. Here
@@ -16,7 +18,7 @@ are the main concepts:
1618
## Usage
1719

1820
This is an HTTP server which responds with `Hello World` to every request.
19-
21+
```php
2022
$loop = React\EventLoop\Factory::create();
2123
$socket = new React\Socket\Server($loop);
2224

@@ -28,3 +30,4 @@ This is an HTTP server which responds with `Hello World` to every request.
2830

2931
$socket->listen(1337);
3032
$loop->run();
33+
```

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99
"react/socket": "0.4.*"
1010
},
1111
"autoload": {
12-
"psr-4": { "React\\Http\\": "" }
12+
"psr-4": {
13+
"React\\Http\\": "src"
14+
}
1315
},
1416
"extra": {
1517
"branch-alias": {
16-
"dev-master": "0.4-dev"
18+
"dev-master": "0.5-dev"
1719
}
1820
}
1921
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)