onassar / PHP-Iconfinder

PHP SDK for running queries against the millions of icons provided by Iconfinder. Includes recursive searches.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP-Iconfinder

PHP SDK for running queries against the millions of icons provided by Iconfinder. Includes recursive searches.

Supports

  • Searches
  • SVG downloading

Requires

Sample Search

$client = new onassar\Iconfinder\Base();
$client->setAPIKey('***');
$client->setAPISecret('***');
$client->setLimit(10);
$client->setOffset(0);
$results = $client->search('love') ?? array();
print_r($results);
exit(0);

Sample Download

$client = new onassar\Iconfinder\Base();
$client->setAPIKey('***');
$client->setAPISecret('***');
$content = $client->getPath('/path/to/svg') ?? 'Could not load content';
echo $content;
exit(0);

About

PHP SDK for running queries against the millions of icons provided by Iconfinder. Includes recursive searches.

License:MIT License


Languages

Language:PHP 100.0%