jcubic / uncp

UNsplash Cache Proxy

Home Page:https://unsplash.just.net.pl/?q=cat&s=2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

 _   _ _ __   ___ _ __  
| | | | '_ \ / __| '_ \ 
| |_| | | | | (__| |_) |
 \__,_|_| |_|\___| .__/ 
                 |_|

PHP file that acts as a proxy for Unsplash API. It uses the SQLite database as a cache. You can use this file to use Unsplash API and not worry about rate limiting. 50 per hour for demo apps.

This project was created as a helper for technical interviews and Live Coding sessions.

Usage

To use the script rename config.json.sample to config.json and add your Access key. To get the Unsplash API key use this link and register as a developer. CACHE_TIME is the number of minutes for cache (default 2 hours).

License

Released under GPL v3 or later
Copyright (C) 2022 Jakub T. Jankiewicz

About

UNsplash Cache Proxy

https://unsplash.just.net.pl/?q=cat&s=2

License:GNU General Public License v3.0


Languages

Language:PHP 100.0%