@@ -22,15 +22,17 @@ Downloads:
22
22
23
23
It is also available at [ openhub.net] ( http://www.openhub.net/p/720386 ) .
24
24
25
- # Why?
25
+ Changelog can be found [ here] ( CHANGELOG.md ) .
26
+
27
+ ## Why?
26
28
27
29
* separate complex operations into simpler
28
30
* easy up unit testing for smaller processes
29
31
* separate responsibility (data generator/transformer/validator/flow manipulator)
30
32
* create process chains you can read in the code (separate integration code from operation code)
31
33
* no dependencies (except you want to join the development team)
32
34
33
- # Examples
35
+ ## Examples
34
36
35
37
* [ no input] ( https://github.com/bazzline/php_component_process_pipe/blob/master/example/NoInput/run.php )
36
38
* [ input array] ( https://github.com/bazzline/php_component_process_pipe/blob/master/example/InputArray/run.php )
@@ -40,21 +42,21 @@ It is also available at [openhub.net](http://www.openhub.net/p/720386).
40
42
* [ input validator] ( https://github.com/bazzline/php_component_process_pipe/blob/master/example/InputValidator/run.php )
41
43
* [ data flow manipulator] ( https://github.com/bazzline/php_component_process_pipe/blob/master/example/DataFlowManipulator/run.php )
42
44
43
- # Install
45
+ ## Install
44
46
45
- ## By Hand
47
+ ### By Hand
46
48
47
49
mkdir -p vendor/net_bazzline/php_component_process_pipe
48
50
cd vendor/net_bazzline/php_component_process_pipe
49
51
git clone https://github.com/bazzline/php_component_process_pipe
50
52
51
- ## With [ Packagist] ( https://packagist.org/packages/net_bazzline/php_component_process_pipe )
53
+ ### With [ Packagist] ( https://packagist.org/packages/net_bazzline/php_component_process_pipe )
52
54
53
55
composer require net_bazzline/php_component_process_pipe:dev-master
54
56
55
- # Usage
57
+ ## Usage
56
58
57
- ## By using the pipe method for multiple process
59
+ ### By using the pipe method for multiple process
58
60
59
61
``` php
60
62
use Net\Bazzline\Component\ProcessPipe\ExecutableException;
76
78
//handle pipe exception
77
79
}
78
80
```
79
- ## By using the pipe method once for each process
81
+ ### By using the pipe method once for each process
80
82
81
83
``` php
82
84
use Net\Bazzline\Component\ProcessPipe\ExecutableException;
97
99
}
98
100
```
99
101
100
- ## By instantiation
102
+ ### By instantiation
101
103
102
104
``` php
103
105
use Net\Bazzline\Component\ProcessPipe\ExecutableException;
@@ -118,7 +120,7 @@ try {
118
120
}
119
121
```
120
122
121
- ## By doing all
123
+ ### By doing all
122
124
123
125
``` php
124
126
use Net\Bazzline\Component\ProcessPipe\ExecutableException;
@@ -145,52 +147,28 @@ try {
145
147
}
146
148
```
147
149
148
- # API
150
+ ## API
149
151
150
152
[ API] ( http://www.bazzline.net/4fedd5481f448035b78eda04155168a08e3ee5b5/index.html ) is available at [ bazzline.net] ( http://www.bazzline.net ) .
151
153
152
- # History
153
-
154
- * upcomming
155
- * @todo
156
- * add support for lambdafunctions or move to __ invoke() fully
157
- * added example for [ tee] ( https://en.wikipedia.org/wiki/Tee_(command) )
158
- * @done
159
- * fixed invalid package names
160
- * Added rector
161
- * Added php-cs-fixer
162
- * [ 1.1.1] ( https://github.com/bazzline/php_component_process_pipe/tree/1.1.1 ) - released at 29.07.2016
163
- * fixed invalid example links
164
- * removed local api
165
- * updated dependency
166
- * [ 1.1.0] ( https://github.com/bazzline/php_component_process_pipe/tree/1.1.0 ) - released at 06.03.2016
167
- * added php 7.0 to travis ci
168
- * fixed invalid version link
169
- * moved to psr-4 autoloading
170
- * updated dependency
171
- * [ 1.0.5] ( https://github.com/bazzline/php_component_process_pipe/tree/1.0.5 ) - released at 11.12.2015
172
- * updated dependency
173
- * [ 1.0.4] ( https://github.com/bazzline/php_component_process_pipe/tree/1.0.4 ) - released at 18.11.2015
174
- * updated dependency
175
- * [ 1.0.3] ( https://github.com/bazzline/php_component_process_pipe/tree/1.0.3 ) - released at 28.08.2015
176
- * updated dependency
177
- * [ 1.0.2] ( https://github.com/bazzline/php_component_process_pipe/tree/1.0.2 ) - released at 04.07.2015
178
- * removed depenendy to phpmd
179
- * updated dependency
180
- * [ 1.0.1] ( https://github.com/bazzline/php_component_process_pipe/tree/1.0.1 ) - released at 08.02.2015
181
- * add "StopExecutionException"
182
- * removed dependency to apigen
183
- * [ 1.0.0] ( https://github.com/bazzline/php_component_process_pipe/tree/1.0.0 ) - released at 12.11.2014
184
- * initial release
185
-
186
- # Links
187
-
188
- ## thanks to
154
+ ## Development notes
155
+
156
+ After code changes, please run:
157
+
158
+ ``` bash
159
+ composer check
160
+ ./vendor/bin/rector process
161
+ ./vendor/bin/php-cs-fixer fix source
162
+ ```
163
+
164
+ ## Links
165
+
166
+ ### Thanks to
189
167
190
168
* [ ralf westphal] ( http://ralfw.de/ )
191
169
* [ the architects napkin] ( https://leanpub.com/thearchitectsnapkin-derschummelzettel )
192
170
193
- ## other pipe implementations
171
+ ### Other pipe implementations
194
172
195
173
* [ pipes] ( https://github.com/vkartaviy/pipes )
196
174
* [ php-pipeline] ( https://github.com/JosephMoniz/php-pipeline )
@@ -200,6 +178,6 @@ try {
200
178
* [ tacone pipes] ( https://github.com/tacone/pipes )
201
179
* [ plumber] ( https://github.com/jadell/plumber )
202
180
203
- # Final Words
181
+ ## Final Words
204
182
205
183
Star it if you like it :-). Add issues if you need it. Pull patches if you enjoy it. Write a blog entry if you use it. [ Donate something] ( https://gratipay.com/~stevleibelt ) if you love it :-] .
0 commit comments