Skip to content

Commit

Permalink
Updated files to act as a standalone component
Browse files Browse the repository at this point in the history
  • Loading branch information
cboden committed May 25, 2014
1 parent 5631171 commit 8479825
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
composer.lock
vendor
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: php

php:
- 5.4
- 5.5
- 5.6
- hhvm

matrix:
allow_failures:
- php: hhvm

before_script:
- composer install --dev --prefer-source
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Http Component

[![Build Status](https://secure.travis-ci.org/reactphp/http.png?branch=master)](http://travis-ci.org/reactphp/http)

Library for building an evented http server.

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

This is an HTTP server which responds with `Hello World` to every request.

```php
$loop = React\EventLoop\Factory::create();
$socket = new React\Socket\Server($loop);

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

$socket->listen(1337);
$loop->run();
```
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
"react/socket": "0.4.*"
},
"autoload": {
"psr-4": { "React\\Http\\": "" }
"psr-4": {
"React\\Http\\": "src"
}
},
"extra": {
"branch-alias": {
"dev-master": "0.4-dev"
"dev-master": "0.5-dev"
}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8479825

Please sign in to comment.