slvler/unsplash-service

unsplash laravel api wrapper

v1.3.1 2023-12-20 08:58 UTC

This package is auto-updated.

Last update: 2024-04-19 14:37:52 UTC


README

tests Latest Stable Version Latest Unstable Version License

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