PHPackages                             scottybo/laravel-unsplash - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. scottybo/laravel-unsplash

ActiveLibrary[API Development](/categories/api)

scottybo/laravel-unsplash
=========================

Laravel package for Unsplash Api

1.0.0(5y ago)055MITPHPPHP &gt;=7.3

Since Jan 4Pushed 5y agoCompare

[ Source](https://github.com/scottybo/laravel-unsplash)[ Packagist](https://packagist.org/packages/scottybo/laravel-unsplash)[ Docs](https://github.com/scottybo/laravel-unsplash)[ RSS](/packages/scottybo-laravel-unsplash/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (2)Versions (7)Used By (0)

Laravel-Unsplash
================

[](#laravel-unsplash)

[![StyleCI](https://camo.githubusercontent.com/6cef96ee7d7760e7ef1cebb66d0b7e23b56531a19c72b01fcd88649b1c9cb17c/68747470733a2f2f7374796c6563692e696f2f7265706f732f3131363031393133382f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/116019138)

**This package contain pulic actions**

Forked and updated to be compatible with Laravel 6

Install
-------

[](#install)

Via Composer

```
$ composer require scottybo/laravel-unsplash
```

If you do not run Laravel 5.5 (or higher), then add the service provider in config/app.php:

```
Scottybo\LaravelUnsplash\LaravelUnsplashServiceProvider::class

```

If you do run the package on Laravel 5.5+, package auto-discovery takes care of the magic of adding the service provider.

You must publish the configuration to provide an own service provider stub.

```
$ php artisan vendor:publish --provider="Scottybo\LaravelUnsplash\LaravelUnsplashServiceProvider"
```

Usage
-----

[](#usage)

See documention for params and others at [unsplash docs](https://unsplash.com/documentation)

List of methods:

### Photos

[](#photos)

```
$unsplash  = new Scottybo\LaravelUnsplash\Photo();
$photos    = $unsplash->photos($params)->get();          // list of all photos
$photo     = $unsplash->single($id, $params)->get();     // single photo
$statistic = $unsplash->statistic($id, $params)->get();  // single photo statistics
$link      = $unsplash->download($id);                   // single photo download link
$photos    = $unsplash->curated($params)->get();         // list of curated photos
$photo     = $unsplash->random($params)->get();          // random photo
```

**notice**: you can use `getArray()` instead of `get()` to get array of result.

**notice**: `single($id, $params)` and `random($params)` have `getID()` and `getURL()` methods to get ID and URL for using in `` tag.

```
$photos = $unsplash->random($params)->getURL(); // return https://source.unsplash.com/WLUHO9A_xik/1600x900
```

### Users

[](#users)

```
$unsplash     = new Scottybo\LaravelUnsplash\User();
$user         = $unsplash->single($username, $params)->get();       // single user
$portfolio    = $unsplash->portfolio($username);                    // single user's portfolio
$photos       = $unsplash->photos($username, $params)->get();       // single user's photos
$photos       = $unsplash->likes($username, $params)->get();        // single user's likes
$collections  = $unsplash->collections($username, $params)->get();  // single user's collections
$statistics   = $unsplash->statistics($username, $params)->get();   // single user's statistics
```

**notice**: you can use `getArray()` instead of `get()` to get array of result.

### Collections

[](#collections)

```
$unsplash    = new Scottybo\LaravelUnsplash\Collection();
$collection  = $unsplash->collections($params)->get(); // list of all collections
$collection  = $unsplash->single($id)->get(); // single collections
$photos      = $unsplash->photos($id, $params)->get(); // collection photos
$statistic   = $unsplash->statistic($id, $params)->get(); // single collections statistics
$collection  = $unsplash->curated($params)->get(); // list of curated collections
$collection  = $unsplash->related($id)->get(); // list of related collections
$collection  = $unsplash->featured($params)->get(); // list of featured collections
```

**notice**: you can use `getArray()` instead of `get()` to get array of result.

### Search

[](#search)

```
$unsplash   = new Scottybo\LaravelUnsplash\Search();
$photos     = $unsplash->photo($query, $params)->get();
$collection = $unsplash->collection($query, $params)->get();
$user       = $unsplash->user($query, $params)->get();
```

**notice**: you can use `getArray()` instead of `get()` to get array of result.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~197 days

Recently: every ~238 days

Total

6

Last Release

2067d ago

Major Versions

v0.2.0 → 1.0.02020-09-14

PHP version history (3 changes)v0.1PHP ~5.6|~7.0

v0.2.0PHP &gt;=7.2

1.0.0PHP &gt;=7.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11498904?v=4)[Scott Bowler](/maintainers/scottybo)[@scottybo](https://github.com/scottybo)

---

Top Contributors

[![MahdiMajidzadeh](https://avatars.githubusercontent.com/u/6115476?v=4)](https://github.com/MahdiMajidzadeh "MahdiMajidzadeh (14 commits)")[![scottybo](https://avatars.githubusercontent.com/u/11498904?v=4)](https://github.com/scottybo "scottybo (2 commits)")

---

Tags

apilaravellaravel-packagephotoUnsplash

### Embed Badge

![Health badge](/badges/scottybo-laravel-unsplash/health.svg)

```
[![Health](https://phpackages.com/badges/scottybo-laravel-unsplash/health.svg)](https://phpackages.com/packages/scottybo-laravel-unsplash)
```

###  Alternatives

[mahdimajidzadeh/laravel-unsplash

Laravel package for Unsplash Api

1111.4k](/packages/mahdimajidzadeh-laravel-unsplash)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[joisarjignesh/bigbluebutton

BigBlueButton Server API Library for Laravel

162145.5k1](/packages/joisarjignesh-bigbluebutton)[ardakilic/mutlucell

Mutlucell SMS API wrapper for sending sms text messages for Laravel

457.3k](/packages/ardakilic-mutlucell)[dariusiii/tmdb-laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

1821.1k](/packages/dariusiii-tmdb-laravel)[wayofdev/laravel-symfony-serializer

📦 Laravel wrapper around Symfony Serializer.

2113.6k](/packages/wayofdev-laravel-symfony-serializer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
