slvler/unsplash-service

unsplash laravel api wrapper

v1.3.2 2024-10-20 21:30 UTC

This package is auto-updated.

Last update: 2024-11-20 21:48:23 UTC


README

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