PHP-Unsplash
PHP SDK for running queries against the millions of photos provided by Unsplash. Includes recursive searches.
Supports
- Searches
- Download tracking
Requires
Sample Search
$client = new onassar\Unsplash\Base();
$client->setAPIKey('***');
$client->setLimit(10);
$client->setOffset(0);
$results = $client->search('love') ?? array();
print_r($results);
exit(0);
Sample Download Tracking
$client = new onassar\Unsplash\Base();
$client->setAPIKey('***');
$tracked = $client->trackDownload('photo:id') ?? false;
echo $tracked;
exit(0);