-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,27 @@ | ||
# slvler - unsplash-service | ||
|
||
# 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](http://poser.pugx.org/slvler/unsplash-service/v)](https://packagist.org/packages/slvler/unsplash-service) | ||
[![Latest Unstable Version](http://poser.pugx.org/slvler/unsplash-service/v/unstable)](https://packagist.org/packages/slvler/unsplash-service) | ||
[![License](http://poser.pugx.org/slvler/unsplash-service/license)](https://packagist.org/packages/slvler/unsplash-service) | ||
|
||
[![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 | ||
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= | ||
UNSPLASH_BASE_URL="https://api.unsplash.com/" | ||
UNSPLASH_ACCESS_KEY= | ||
UNSPLASH_SECRET_KEY= | ||
``` | ||
|
||
|
||
|
||
#### Features | ||
|
||
- Collection | ||
- Search |