Giter VIP home page Giter VIP logo

php-itunes-api's Introduction

PHP iTunes API

iTunes Query System

CircleCI

Requirements:

  • PHP >= 7.2

Installation:

With Composer:

{
    "require": {
        "dariusiii/php-itunes-api": "dev-master"
    }
}

Usage:

You can search artists, albums and tracks (by now)

<?php
use DariusIII\ItunesApi\iTunes;

$artistsFinder = iTunes::load('artist');
$albumsFinder = iTunes::load('album');
$tracksFinder = iTunes::load('track');
$moviesFinder = iTunes::load('movie');
$ebooksFinder = iTunes::load('ebook');

Finders' methods

Artists Finder
Method Return
fetchById( int $id [, string $country [, bool $includeAlbums ] ] ) Artist
fetchByName( string $name [, string $country ] ) SearchResults
fetchOneByName( int $id [, string $country [, bool $includeAlbums ] ] ) Artist
Albums Finder
Method Return
fetchById( int $id [, string $country [, bool $includeTracks ] ] ) Album
fetchByName( string $name [, string $country ] ) SearchResults
fetchOneByName( int $id [, string $country [, bool $includeTracks ] ] ) Album
Tracks Finder
Method Return
fetchById( int $id [, string $country ] ) Track
fetchByName( string $name [, string $country ] ) SearchResults
fetchOneByName( int $id [, string $country ] ) Track
Movies Finder
Method Return
fetchById( int $id [, string $country ] ) Movie
fetchByName( string $name [, string $country ] ) SearchResults
fetchOneByName( int $id [, string $country ] ) Movie
Ebooks Finder
Method Return
fetchById( int $id [, string $country ] ) Ebook
fetchByName( string $name [, string $country ] ) SearchResults
fetchOneByName( int $id [, string $country ] ) Ebook

Entities

Artist Entity
Attribute Type Description
itunesId integer -
name string -
albums Collection -
Album Entity
Attribute Type Description
itunesId integer -
artistId integer iTunes artist's ID
artistName string iTunes artist's Name
name string -
cover string URL to image
explicit bool -
tracksCount integer -
releaseDate DateTime -
tracks Collection -
Track Entity
Attribute Type Description
itunesId integer -
artistId integer iTunes artist's ID
albumId integer iTunes album's ID
name string -
artistName string iTunes artist's name
preview string URL to track's audio preview
explicit bool -
trackNumber integer -
length integer Track's lenght in milliseconds
cover string URL to track cover
Movie Entity
Attribute Type Description
itunesId integer -
artistId integer iTunes artist's ID
name string -
director string Movie director(s)
cover string URL to movie's cover
storeUrl string URL to movie's page
trailer string URL to movie's trailer
explicit bool -
description string Movie description
tagline string Movie tagline
releaseDate DateTime Movie release date
genre string Movie genre
Ebook Entity
Attribute Type Description
itunesId integer -
artistId integer iTunes artist's ID
name string -
author string Book author
cover string URL to ebook cover
storeUrl string URL to book's page
description string Book description
releaseDate DateTime Book release date
genre array Boook genre

Collections

Collection

A Collection is an ArrayObject

SearchResults

A SearchResults is an ArrayObject

php-itunes-api's People

Contributors

dariusiii avatar jacoz avatar uebanchik avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.