tii/wow-api

Owen Wilson Wow API integration for PHP

v1.0.1 2022-10-31 12:05 UTC

This package is auto-updated.

Last update: 2024-11-29 06:47:35 UTC


README

PHP API integration for Owen Wilson Wow API

This uses the Owen Wilson Wow API. See their API documentation.

Installation

Require this package with composer

composer require tii/wow-api

Usage

You have all the available API methods as static methods on the Tii\WowApi\WowApi class.

Examples

Get 5 random Wows

$wows = \Tii\WowApi\WowApi::random(results: 5);

Get a single ordered Wow

$wow = \Tii\WowApi\WowApi::ordered('20');

Get a list of available movies/directors

$movies = \Tii\WowApi\WowApi::allMovies();
$directors = \Tii\WowApi\WowApi::allDirectors();

Get 5 random wows from a specific movie

$wowsInCars3 = \Tii\WowApi\WowApi::random(
  results: 5,
  movie: 'Cars 3'
);