dariusiii/php-itunes-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dariusiii/php-itunes-api

最新稳定版本:v1.0.14

Composer 安装命令:

composer require dariusiii/php-itunes-api

包简介

Query iTunes API System

README 文档

README

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

统计信息

  • 总下载量: 16.85k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 11
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2018-11-26