tnhnclskn / yify-api
Yify API on PHP
1.0.0
2024-03-28 05:31 UTC
Requires
- guzzlehttp/guzzle: ^7.8
This package is auto-updated.
Last update: 2025-02-28 07:20:02 UTC
README
A simple Object Oriented wrapper for Yify (YTS.AM) API, written with PHP.
Uses Yify API. The object API is very similar to the RESTful API.
Features
- PSR 6 Cache Pool
- Light and fast thanks to lazy loading of API classes
- Extensively tested and documented
Requirements
- PHP >= 5.6
- A HTTP client
- A PSR-7 implementation
- (optional) PHPUnit to run tests.
Install
Via Composer:
$ composer require tnhnclskn/yify-api
Why php-http/guzzle6-adapter
? We are decoupled from any HTTP messaging client with help by HTTPlug.
Basic usage of php-yify-api
client
<?php // This file is generated by Composer require_once __DIR__ . '/vendor/autoload.php'; $client = new \YifyAPI\YifyAPI(); $response = $client->listMovies(); $movies = $response->movies;
From $client
object, you can access to all YifyAPI.
License
php-yify-api
is licensed under the GNU License - see the LICENSE file for details