matchtune-sdk / php-sdk
A framework library to access MatchTune API
1.0
2021-09-27 13:00 UTC
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2025-05-27 22:12:41 UTC
README
This repository contains the open source MatchTune SDK that allows you to access the MatchTune API from your PHP app.
Installation
The MatchTune PHP SDK can be installed with Composer. Run this command:
composer require matchtune-sdk/php-sdk
Usage
Simple MatchTune Query Example
require_once __DIR__ . '/vendor/autoload.php'; // change path as needed use MatchTune\MatchTune; $api = new MatchTune(["app_token" => $app_token]); $haserror = true; // -- Load genre & subgenre list if ($genres = $api->genres()) { // -- pick a random genre $genre = $genres[array_rand($genres)]; // -- create a search query $query = $api->makeQuery($genre, $title = null, $tags = null); // -- request a standard generated music if ($idcard = $api->generate($query)) { $haserror = false; // -- use the data printIDCard($idcard); } }
Api documentation
All mechanisms developed here are documented on our REST API documentation.
License
Please see the license file for more information.
Security Vulnerabilities
If you have found a security issue, please contact the support team directly at support@matchtune.com.