This package provides a convenient wrapper to the Unsplash API for Laravel applications.
- PHP 8.0+
- Laravel 9.x
To install this package tou can use composer:
composer require slvler/unsplash-service
- 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=
- Collection
- Search