lukaswhite / itunes-categories
iTunes categories
Installs: 7 703
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 1
Requires (Dev)
- phpunit/php-code-coverage: ^9.2
- phpunit/phpunit: ^9.5
README
This simple PHP package simply defines all of the valid categories for iTunes podcasts.
Installation
composer require lukaswhite/itunes-categories
Usage
use Lukaswhite\ItunesCategories\Categories; $categories = new Categories(); $categories->all();
This simply returns a nested associative array of all the categories as objects.
You can get a category directly:
$categories->get('Sports'); $categories->get('Sports', 'Football'); $categories->get('Kids & Family'); // NOTE we're using the key
You can check whether categories exist:
$categories->has('Sports') // true $categories->has('Sports', 'Football'); // true