tnhnclskn/yify-api

1.0.0 2024-03-28 05:31 UTC

This package is auto-updated.

Last update: 2024-04-28 05:38:16 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

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