Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wyrihaximus/reactphp-event-loop-inspector-phunin-node-plugin
https://github.com/wyrihaximus/reactphp-event-loop-inspector-phunin-node-plugin
hacktoberfest php reactphp
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/wyrihaximus/reactphp-event-loop-inspector-phunin-node-plugin
- Owner: WyriHaximus
- License: mit
- Created: 2016-01-05T00:31:15.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-05T08:24:38.000Z (about 1 year ago)
- Last Synced: 2024-11-14T20:55:17.976Z (about 1 month ago)
- Topics: hacktoberfest, php, reactphp
- Language: PHP
- Size: 51.8 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Event Loop inspector Phunin Node Plugin
[![Build Status](https://travis-ci.org/WyriHaximus/reactphp-event-loop-inspector-phunin-node-plugin.png)](https://travis-ci.org/WyriHaximus/reactphp-event-loop-inspector-phunin-node-plugin)
[![Latest Stable Version](https://poser.pugx.org/WyriHaximus/react-event-loop-inspector-phunin-node-plugin/v/stable.png)](https://packagist.org/packages/WyriHaximus/react-event-loop-inspector-phunin-node-plugin)
[![Total Downloads](https://poser.pugx.org/WyriHaximus/react-event-loop-inspector-phunin-node-plugin/downloads.png)](https://packagist.org/packages/WyriHaximus/react-event-loop-inspector-phunin-node-plugin)
[![Code Coverage](https://scrutinizer-ci.com/g/WyriHaximus/reactphp-event-loop-inspector-phunin-node-plugin/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/WyriHaximus/reactphp-event-loop-inspector-phunin-node-plugin/?branch=master)
[![License](https://poser.pugx.org/wyrihaximus/react-event-loop-inspector-phunin-node-plugin/license.png)](https://packagist.org/packages/wyrihaximus/react-event-loop-inspector-phunin-node-plugin)
[![PHP 7 ready](http://php7ready.timesplinter.ch/WyriHaximus/reactphp-event-loop-inspector-phunin-node-plugin/badge.svg)](https://travis-ci.org/WyriHaximus/reactphp-event-loop-inspector-phunin-node-plugin)[Monitor](https://github.com/WyriHaximus/reactphp-event-loop-inspector) the [ReactPHP event loop](https://github.com/reactphp/event-loop) using [`wyrihaximus/phunin-node`](https://github.com/wyrihaximus/PhuninNode)
## Installation ##
To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `~`.
```
composer require wyrihaximus/react-event-loop-inspector-phunin-node-plugin
```## Usage ##
```php
use WyriHaximus\React\Inspector\InfoProvider;
use WyriHaximus\React\Inspector\PhuninNode\Streams;
use WyriHaximus\React\Inspector\PhuninNode\Ticks;
use WyriHaximus\React\Inspector\PhuninNode\Totals;// Info provider
$infoProvider = new InfoProvider($decoratedLoop);// Add plugins
$node->addPlugin(new Streams($infoProvider));
$node->addPlugin(new Ticks($infoProvider));
$node->addPlugin(new Totals($infoProvider));
```## Contributing ##
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## License ##
Copyright 2016 [Cees-Jan Kiewiet](http://wyrihaximus.net/)
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.