Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/owenvoke/livepeer-php
An object oriented PHP wrapper for the Livepeer API
https://github.com/owenvoke/livepeer-php
api livepeer livepeer-api php wrapper
Last synced: about 2 months ago
JSON representation
An object oriented PHP wrapper for the Livepeer API
- Host: GitHub
- URL: https://github.com/owenvoke/livepeer-php
- Owner: owenvoke
- License: mit
- Created: 2021-11-10T17:31:42.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-11T09:33:45.000Z (about 3 years ago)
- Last Synced: 2024-05-03T04:02:21.254Z (9 months ago)
- Topics: api, livepeer, livepeer-api, php, wrapper
- Language: PHP
- Homepage: https://packagist.org/packages/owenvoke/livepeer
- Size: 22.5 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# Livepeer PHP
[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[![Build Status][ico-github-actions]][link-github-actions]
[![Style CI][ico-styleci]][link-styleci]
[![Total Downloads][ico-downloads]][link-downloads]
[![Buy us a tree][ico-treeware-gifting]][link-treeware-gifting]An object oriented PHP wrapper for the Livepeer API
## Requirements
- PHP >= 7.4
- A [PSR-17 implementation](https://packagist.org/providers/psr/http-factory-implementation)
- A [PSR-18 implementation](https://packagist.org/providers/psr/http-client-implementation)## Install
Via Composer
```shell
composer require owenvoke/livepeer guzzlehttp/guzzle:^7.4 http-interop/http-factory-guzzle:^1.2
```We are decoupled from any HTTP messaging client with help by [HTTPlug](https://httplug.io).
## Usage
**Basic usage**
```php
// Include the Composer autoloader
require_once __DIR__ . '/vendor/autoload.php';$client = new \OwenVoke\Livepeer\Client();
$repositories = $client->stream()->all();
```**Authentication**
> Note: Livepeer only supports authentication via an API token.
```php
use OwenVoke\Livepeer\Client;
$client = new Client();
$client->authenticate($apiToken, null, Client::AUTH_ACCESS_TOKEN);
```## Change log
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Testing
```shell
composer test
```## Contributing
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.
## Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
## Credits
- [Owen Voke][link-author]
- [All Contributors][link-contributors]## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
## Treeware
You're free to use this package, but if it makes it to your production environment you are required to buy the world a
tree.It’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising
above 1.5C is to plant trees. If you support this package and contribute to the Treeware forest you’ll be creating
employment for local families and restoring wildlife habitats.You can buy trees [here][link-treeware-gifting].
Read more about Treeware at [treeware.earth][link-treeware].
[ico-version]: https://img.shields.io/packagist/v/owenvoke/livepeer.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-github-actions]: https://img.shields.io/github/workflow/status/owenvoke/livepeer-php/Tests.svg?style=flat-square
[ico-styleci]: https://styleci.io/repos/299549651/shield
[ico-downloads]: https://img.shields.io/packagist/dt/owenvoke/livepeer.svg?style=flat-square
[ico-treeware-gifting]: https://img.shields.io/badge/Treeware-%F0%9F%8C%B3-lightgreen?style=flat-square[link-packagist]: https://packagist.org/packages/owenvoke/livepeer
[link-github-actions]: https://github.com/owenvoke/livepeer-php/actions
[link-styleci]: https://styleci.io/repos/299549651
[link-downloads]: https://packagist.org/packages/owenvoke/livepeer
[link-treeware]: https://treeware.earth
[link-treeware-gifting]: https://ecologi.com/owenvoke?gift-trees
[link-author]: https://github.com/owenvoke
[link-contributors]: ../../contributors