shellwrap
shellwrap copied to clipboard
Lovely PHP wrapper for using the command-line
In some PHP IDE (e.g., PhpStorm) you may see that method _\MrRio\ShellWrap::__toString()_ is highlighted with notification saying > ___toString() method must return a string_ This could be triggered with following...
If you use function _chdir()_ to change working directory to a different directory first, following two statements should still return same directories. However, in Travis CI they return different directories...
I've opened an issue against Boris [here](https://github.com/borisrepl/boris/issues/128), however, I am also going open an issue here for anyone else experiencing this. When using shell wrap with a composer version >1.3.0,...
- [ ] Travis - [ ] More examples - [ ] Bump version number - [ ] Publish on composer - [ ] More docs - [ ] Add...
My case is currently that I'm streaming use log files using `sh::cat()` and using a callback closure to pass the data (after a filter) to an PHPExcel object. The log...
https://github.com/MrRio/shellwrap/blob/0.4.1/src/MrRio/ShellWrap.php#L41 Causes `Warning: MrRio\ShellWrapException::__toString() must return a string in Unknown on line 0`
``` php echo sh::grep('html', sh::curl('http://example.com', array( 'location' => true ))); ``` In current API I don't like 2 things: 1. inverted order of commands (grep -> curl) when actually `curl...
Let's assume I have a binary file `/some/path/to/bin/foo`, how can I call it?
Similar to this project in Node.js: https://github.com/arturadib/shelljs