1. Go to this page and download the library: Download daaner/tiktok library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
use Daaner\TikTok\Models\UserInfo;
$tt = new UserInfo;
$user = $tt->getUser('tiktok');
//or
$user = $tt->getUser('@tiktok');
// or for simple info
$user = $tt->getUserInfo('tiktok');
dd($user);
use Daaner\TikTok\Models\TagInfo;
$tt = new TagInfo;
$tag = $tt->getTag('apple');
//or
$tag = $tt->getTag('#apple');
// or for simple
$tag = $tt->getTagInfo('apple');
//and API data
$tag = $tt->getTagApi('13100', 10, 0);
dd($tag);
use Daaner\TikTok\Models\MusicInfo;
$tt = new MusicInfo;
$music = $tt->getMusic('I-JUST-FELL-6768866707013388289');
//or
$music = $tt->getMusic('6768866707013388289');
// or for simple
$music = $tt->getMusicInfo('6768866707013388289');
//and API data
$music = $tt->getMusicApi('6728860413338847233', 10, 2);
dd($music);
use Daaner\TikTok\Models\DiscoverInfo;
$tt = new DiscoverInfo;
$discover = $tt->getDiscover();
//and API data
$discover = $tt->getDiscoverApi('user');
//or
$discover = $tt->getDiscoverApi('music');
//or
$discover = $tt->getDiscoverApi('challenge');
dd($discover);