slvler / unsplash-service
unsplash laravel api wrapper
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
Requires (Dev)
- guzzlehttp/guzzle: ^7.0.1
- orchestra/testbench: ^6.18.0
- phpunit/phpunit: ^9.5
README
This package provides a convenient wrapper to the Unsplash API for Laravel applications.
Requirements
- PHP 8.0+
- Laravel 9.x
Installation
To install this package tou can use composer:
composer require slvler/unsplash-service
Usage
- First of all we'll add the API key and API Url of the service we're using to our .env file of our project. If you don't have an account yet on unsplash.com, you should create one. Once you have an account you can copy your API key from the dashboard page and put it into you .env file.
UNSPLASH_BASE_URL="https://api.unsplash.com/" UNSPLASH_ACCESS_KEY= UNSPLASH_SECRET_KEY=
Features
- Collection
- Search