All Projects → WyriHaximus → reactphp-child-process-promise

WyriHaximus / reactphp-child-process-promise

Licence: MIT license
No description or website provided.

Programming Languages

PHP
23972 projects - #3 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to reactphp-child-process-promise

Promise
Promises/A implementation for PHP.
Stars: ✭ 2,078 (+17216.67%)
Mutual labels:  promise, reactphp
Promise Timer
A trivial implementation of timeouts for Promises, built on top of ReactPHP.
Stars: ✭ 270 (+2150%)
Mutual labels:  promise, reactphp
ADM-treeView
Pure AngularJs TreeView
Stars: ✭ 30 (+150%)
Mutual labels:  promise
apns2
Node client for connecting to Apple's Push Notification Service using the new HTTP/2 protocol with JSON web tokens
Stars: ✭ 66 (+450%)
Mutual labels:  promise
Forbind
Functional chaining and promises in Swift
Stars: ✭ 44 (+266.67%)
Mutual labels:  promise
ProtoPromise
Robust and efficient library for management of asynchronous operations in C#/.Net.
Stars: ✭ 20 (+66.67%)
Mutual labels:  promise
php-react-memcached
Asynchronous Memcached PHP Client for ReactPHP ecosystem
Stars: ✭ 27 (+125%)
Mutual labels:  reactphp
make-cancellable-promise
Make any Promise cancellable.
Stars: ✭ 17 (+41.67%)
Mutual labels:  promise
webpack2-polyfill-plugin
Insert polyfills (such as Promise) for Webpack 2
Stars: ✭ 18 (+50%)
Mutual labels:  promise
buzy
Async queue manager for node and browser
Stars: ✭ 23 (+91.67%)
Mutual labels:  promise
imooc-promise-sample
📝 幕课网Promise入门视频源码(https://www.imooc.com/learn/949)
Stars: ✭ 87 (+625%)
Mutual labels:  promise
io-ts-promise
io-ts for developers who like Promises
Stars: ✭ 69 (+475%)
Mutual labels:  promise
wxapp-socket
用于微信小程序socket通信的封装
Stars: ✭ 17 (+41.67%)
Mutual labels:  promise
retryx
Promise-based retry workflow library.
Stars: ✭ 21 (+75%)
Mutual labels:  promise
microteam
小团队管理 是一款开源的微信小程序,主要用于日常的团队管理
Stars: ✭ 40 (+233.33%)
Mutual labels:  promise
kuromojin
Provide a high-level wrapper for kuromoji.js. Cache/Promise API
Stars: ✭ 64 (+433.33%)
Mutual labels:  promise
postmessagejs
postmessage-promise is a client-server like, WebSocket like, full Promise syntax (postMessage.then etc.) supported postMessage library. 一个类 client-server 模式、类 WebSocket 模式、全 Promise 语法支持的 postMessage 库
Stars: ✭ 33 (+175%)
Mutual labels:  promise
react-nested-loader
The easiest way to manage loaders/errors inside a button. NOT an UI lib.
Stars: ✭ 62 (+416.67%)
Mutual labels:  promise
hermes-js
Universal action dispatcher for JavaScript apps
Stars: ✭ 15 (+25%)
Mutual labels:  promise
routeros-client
Abstraction layer over the node-routeros API
Stars: ✭ 63 (+425%)
Mutual labels:  promise

ReactPHP Child Process Promise

Linux Build Status Latest Stable Version Total Downloads Code Coverage License PHP 7 ready

Wrap a ReactPHP child process in a promise, once the process ends the promise resolves with the exit code and STDERR and STDOUT buffers.

Installation

To install via Composer, use the command below, it will automatically detect the latest version and bind it with ^.

composer require wyrihaximus/react-child-process-promise 

Examples

\WyriHaximus\React\childProcessPromise($loop, new Process('uptime'))->then(function ($result) {
    var_export($result);
    /**
     * Example output: 
     * WyriHaximus\React\ProcessOutcome::__set_state(array(
     *   'exitCode' => 0,
     *   'stderr' => 'Error messages will go in this buffer',
     *   'stdout' => 'Normal output will go in this buffer',
     * ))
    */
});

For ready to use examples see the examples directory

Contributing

Please see CONTRIBUTING for details.

License

Copyright 2016 Cees-Jan Kiewiet

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].