Skip to content

Commit bf33f6f

Browse files
committed
Merge branch 'refs/heads/standalone'
2 parents ca3a95b + f21dcbf commit bf33f6f

15 files changed

Lines changed: 29 additions & 4 deletions

.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
# Stream Component
22

3+
[![Build Status](https://secure.travis-ci.org/reactphp/stream.png?branch=master)](http://travis-ci.org/reactphp/stream)
4+
35
Basic readable and writable stream interfaces that support piping.
46

57
In order to make the event loop easier to use, this component introduces the
@@ -56,7 +58,7 @@ This component depends on `événement`, which is an implementation of the
5658
the buffer, then close it.
5759

5860
## Usage
59-
61+
```php
6062
$loop = React\EventLoop\Factory::create();
6163

6264
$source = new React\Stream\Stream(fopen('omg.txt', 'r'), $loop);
@@ -65,3 +67,4 @@ This component depends on `événement`, which is an implementation of the
6567
$source->pipe($dest);
6668

6769
$loop->run();
70+
```

composer.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,22 @@
77
"php": ">=5.4.0",
88
"evenement/evenement": "~2.0"
99
},
10+
"require-dev": {
11+
"react/event-loop": "0.4.*",
12+
"react/promise": "~2.0"
13+
},
1014
"suggest": {
1115
"react/event-loop": "0.4.*",
1216
"react/promise": "~2.0"
1317
},
1418
"autoload": {
15-
"psr-4": { "React\\Stream\\": "" }
19+
"psr-4": {
20+
"React\\Stream\\": "src"
21+
}
1622
},
1723
"extra": {
1824
"branch-alias": {
19-
"dev-master": "0.4-dev"
25+
"dev-master": "0.5-dev"
2026
}
2127
}
2228
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)