1. Go to this page and download the library: Download revolution/niconico 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/ */
revolution / niconico example snippets
use Revolution\Niconico\Search;
use Revolution\Niconico\Search\Query;
$query = new Query();
$query->q = "初音ミク";
$query->targets = 'title,tags';
$query->_sort = "-viewCounter";
$query->filters(['filters[mylistCounter][gte]=10000', 'filters[commentCounter][gte]=100000']);
$search = new Search();
// returns object
$response = $search->search($query);
// returns array
$response = $search->search($query, true);
use Revolution\Niconico\Search\Query;
$query = new Query([
'q' => '初音ミク',
'targets' => 'title,tags',
'_sort' => '-viewCounter',
]);