library hypem
A wrapper for the hypem.com public API
artemio/hypem
A wrapper for the hypem.com public API
- Friday, July 7, 2017
- by artembykov
- Repository
- 1 Watchers
- 1 Stars
- 26 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 1 Open issues
- 1 Versions
- 0 % Grown
hypem-php
, (*1)
A PHP wrapper for the hypem.com public API, (*2)
Composer
$ composer require artemio/hypem
, (*3)
Quick Start and Examples
require '../vendor/autoload.php';
use \Hypem\Playlist as Playlist;
use \Hypem\Track as Track;
use \Hypem\User as User;
// available Playlist static methods
$latest = Playlist::latest('noremix')->get();
$popular = Playlist::popular()->get(3); // provide page number
$artist = Playlist::artist('Placebo')->get();
$blog = Playlist::blog(16746)->get(); // "Cruel Rythm" blog_id
$tags = Playlist::tags('electro house')->get();
$search = Playlist::search('Woodkid Iron')->get();
// get track by id
$track = new Track('264xq');
// get tracks of specific user
$user = new User('username');
$feed = $user->feed();
$favorites = $user->favorites(5); // provide page number
$history = $user->history();
$obsessed = $user->obsessed();
$friendFavorites = $user->friendFavorites();
$friendObsessed = $user->friendObsessed(2);
Available filters for latest playlist
-
all
(default)
fresh
remix
noremix
Available filters for popular playlist
-
now
(default)
lastweek
remix
noremix
artists
twitter