Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/slvler/unsplash-service
laravel unsplash wrapper
https://github.com/slvler/unsplash-service
Last synced: 16 days ago
JSON representation
laravel unsplash wrapper
- Host: GitHub
- URL: https://github.com/slvler/unsplash-service
- Owner: slvler
- License: mit
- Created: 2023-08-09T18:07:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-20T21:30:42.000Z (24 days ago)
- Last Synced: 2024-10-21T02:00:20.519Z (24 days ago)
- Language: PHP
- Homepage:
- Size: 21.5 KB
- Stars: 12
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# unsplash-service
[![tests](https://github.com/slvler/unsplash-service/actions/workflows/tests.yml/badge.svg)](https://github.com/slvler/unsplash-service/actions/workflows/tests.yml)
[![Latest Stable Version](https://poser.pugx.org/slvler/unsplash-service/v)](https://packagist.org/packages/slvler/unsplash-service)
[![Latest Unstable Version](https://poser.pugx.org/slvler/unsplash-service/v/unstable)](https://packagist.org/packages/slvler/unsplash-service)
[![License](https://poser.pugx.org/slvler/unsplash-service/license)](https://packagist.org/packages/slvler/unsplash-service)
[![Total Downloads](https://poser.pugx.org/slvler/unsplash-service/downloads)](https://packagist.org/packages/slvler/unsplash-service)This package provides a convenient wrapper to the [Unsplash API](https://unsplash.com/documentation) for Laravel applications.
## Requirements
- PHP 8.0+
- Laravel 9.x
## Installation
To install this package tou can use composer:
```bash
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.
```php
UNSPLASH_BASE_URL="https://api.unsplash.com/"
UNSPLASH_ACCESS_KEY=
UNSPLASH_SECRET_KEY=
```
#### Features
- Collection
- Search