2017 © Pedro Peláez
 

library rx-operators

image

api-clients/rx-operators

  • Saturday, July 14, 2018
  • by WyriHaximus
  • Repository
  • 3 Watchers
  • 0 Stars
  • 10,536 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 5 Versions
  • 12 % Grown

The README.md

RxPHP operators for PHP 7

Build Status Latest Stable Version Total Downloads Code Coverage License PHP 7 ready, (*1)

Installation

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

composer require api-clients/rx-operators 

Usage

Decoding JSON:, (*3)

$observable = Observable::fromArray(['{"foo":"bar"}']);
$promise = resolve($observable);

/**
 * Will decode into:
 * [
 *   'foo' => 'bar',
 * ]
 */
$observable->_ApiClients_jsonDecode()->subscribe(function ($d) {
    var_export($d);
});

Encoding JSON:, (*4)

$observable = Observable::fromArray([[
    'foo' => 'bar',
]]);
$promise = resolve($observable);

/**
 * Will encode into:
 * {"foo":"bar"}
 */
$observable->_ApiClients_jsonEncode()->subscribe(function ($d) {
    echo $d;
});

License

The MIT License (MIT), (*5)

Copyright (c) 2017 Cees-Jan Kiewiet, (*6)

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:, (*7)

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

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., (*9)

The Versions

14/07 2018

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

10/07 2018

dev-dependabot/composer/api-clients/test-utilities-5.0.0

dev-dependabot/composer/api-clients/test-utilities-5.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

23/03 2017

2.0.0

2.0.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

22/03 2017
12/10 2016

dev-var.ci

dev-var.ci

  Sources   Download

MIT