Skip to content

Commit c528e75

Browse files
committed
Update repo to work as a standalone component
1 parent ca3a95b commit c528e75

14 files changed

Lines changed: 26 additions & 3 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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ This component depends on `événement`, which is an implementation of the
5656
the buffer, then close it.
5757

5858
## Usage
59-
59+
```php
6060
$loop = React\EventLoop\Factory::create();
6161

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

6767
$loop->run();
68+
```

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)