Skip to content

slvler/unsplash-service

Repository files navigation

unsplash-service

tests Latest Stable Version Latest Unstable Version License Total Downloads

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