PHPackages                             shweshi/laravel-unsplash-wrapper - 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. shweshi/laravel-unsplash-wrapper

ActiveLibrary[API Development](/categories/api)

shweshi/laravel-unsplash-wrapper
================================

A Laravel wrapper for Unsplash

4.0.0(4y ago)195.9k↓42.2%7[1 issues](https://github.com/shweshi/laravel-unsplash-wrapper/issues)MITPHPPHP ~5.6|~7.0

Since Feb 10Pushed 3y ago2 watchersCompare

[ Source](https://github.com/shweshi/laravel-unsplash-wrapper)[ Packagist](https://packagist.org/packages/shweshi/laravel-unsplash-wrapper)[ RSS](/packages/shweshi-laravel-unsplash-wrapper/feed)WikiDiscussions master Synced 1mo ago

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

LaravelUnsplashWrapper
======================

[](#laravelunsplashwrapper)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2f841b1706519164e59d194534fb0756ee3636982d73466f8087143b239a1218/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736877657368692f4c61726176656c2d556e73706c6173682d577261707065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/shweshi/Laravel-Unsplash-Wrapper)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d7ad0214c692007eb80c4ee6df903f423502874662aa6ee497ac85f5b1b5aded/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736877657368692f4c61726176656c2d556e73706c6173682d577261707065722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/shweshi/Laravel-Unsplash-Wrapper/?branch=master)[![StyleCI](https://camo.githubusercontent.com/6128194c8f7ed310ff7e35efbceb7dbe481f3508ba4e209f7a23612d75ee37d0/68747470733a2f2f7374796c6563692e696f2f7265706f732f3132313033303334342f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/121030344)[![Build Status](https://camo.githubusercontent.com/220f1cb86a53503e35e331b9b5a97720f46473b476b46d89283200d0bcc6af6a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736877657368692f4c61726176656c2d556e73706c6173682d577261707065722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/shweshi/Laravel-Unsplash-Wrapper/build-status/master)[![Total Downloads](https://camo.githubusercontent.com/810d6e7eaa5ef72a5f930721b83cf6b3a1614df5e4d2b4a7bf779db9bb8b37eb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736877657368692f4c61726176656c2d556e73706c6173682d577261707065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/shweshi/Laravel-Unsplash-Wrapper)[![FOSSA Status](https://camo.githubusercontent.com/4847f151fa2238f0fd57274e89be770ce4da9c70520177b91b7d0531cac0130f/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d253246736877657368692532464c61726176656c2d556e73706c6173682d577261707065722e7376673f747970653d736869656c64)](https://app.fossa.io/projects/git%2Bgithub.com%2Fshweshi%2FLaravel-Unsplash-Wrapper?ref=badge_shield)

**A Laravel wrapper for Unsplash.**

Install
-------

[](#install)

Via Composer

```
$ composer require shweshi/laravel-unsplash-wrapper
```

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

```
shweshi\LaravelUnsplashWrapper\Providers\UnsplashServiceProvider::class,
shweshi\LaravelUnsplashWrapper\Providers\UnsplashSearchServiceProvider::class,
shweshi\LaravelUnsplashWrapper\Providers\UnsplashUsersServiceProvider::class,
shweshi\LaravelUnsplashWrapper\Providers\UnsplashPhotosServiceProvider::class,
shweshi\LaravelUnsplashWrapper\Providers\UnsplashCollectionsServiceProvider::class,

```

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

Next under the alias array in config/app.php add

```
'UnsplashSearch' => shweshi\LaravelUnsplashWrapper\Facades\UnsplashSearchFacade::class,
'UnsplashUsers' => shweshi\LaravelUnsplashWrapper\Facades\UnsplashUsersFacade::class,
'UnsplashPhotos' => shweshi\LaravelUnsplashWrapper\Facades\UnsplashPhotosFacade::class,
'UnsplashCollections' => shweshi\LaravelUnsplashWrapper\Facades\UnsplashCollectionsFacade::class,

```

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

```
$ php artisan vendor:publish --provider="shweshi\LaravelUnsplashWrapper\Providers\UnsplashServiceProvider"
```

Update your settings in the generated app/config/unsplash.php configuration file.

```
return [
    'ApplicationID' => 'YOUR APPLICATION ACCES KEY HERE',
];

```

Usage
-----

[](#usage)

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

List of methods:

### Photos

[](#photos)

```
$photos        = UnsplashPhotos::photos([]);          // list of all photos
$photo         = UnsplashPhotos::single($id, $params);     // single photo
$statistic     = UnsplashPhotos::statistic($id, $params);  // single photo statistics
$downloadUrl   = UnsplashPhotos::download($id, $params);   // single photo download link
$curatedPhotos = UnsplashPhotos::curated($params);         // list of curated photos
$randomPhoto   = UnsplashPhotos::random($params);          // random photo
```

### Users

[](#users)

```
use UnsplashUsers;

$user         = UnsplashUsers::profile($username, $params);      // single user
$portfolio    = UnsplashUsers::portfolio($username);             // single user's portfolio
$photos       = UnsplashUsers::photos($username, $params);       // single user's photos
$photos       = UnsplashUsers::likes($username, $params);        // single user's likes
$collections  = UnsplashUsers::collections($username, $params);  // single user's collections
$statistics   = UnsplashUsers::statistics($username, $params);   // single user's statistics
```

### Collections

[](#collections)

```
use UnsplashCollections;

$collection  = UnsplashCollections::collections($params);    // list of all collections
$collection  = UnsplashCollections::single($id, $params);    // single collections
$photos      = UnsplashCollections::photos($id, $params);    // collection photos
$statistic   = UnsplashCollections::statistic($id, $params); // single collections statistics
$collection  = UnsplashCollections::curated($params);        // list of curated collections
$collection  = UnsplashCollections::related($id, $params);   // list of related collections
$collection  = UnsplashCollections::featured($params);       // list of featured collections
```

### Search

[](#search)

```
use UnsplashSearch;

$photos     = UnsplashSearch::photo($query, $params);
$collection = UnsplashSearch::collection($query, $params);
$user       = UnsplashSearch::user($query, $params);
```

### Example

[](#example)

`echo UnsplashPhotos::photos(['page' => 1, 'order_by' => 'oldest']);`

will get you something like

```
ixlib=rb-0.3.5\u0026q=80\u0026fm=jpg\u0026crop=faces\u0026cs=tinysrgb\u0026fit=crop\u0026h=64\u0026w=64\u0026s=4ddd6656ddd74206872f45c033371087","large":"https://images.unsplash.com/profile-1441298310363-3eb4b1feb829?
.....
```

which you will need to format

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE OF CONDUCT](CODE_OF_CONDUCT.md) for details.

License
-------

[](#license)

[![FOSSA Status](https://camo.githubusercontent.com/882cc566e7feb04641b6f2fa8a4c720ea29c1e4304fc57dc39b256f673cac98c/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d253246736877657368692532464c61726176656c2d556e73706c6173682d577261707065722e7376673f747970653d6c61726765)](https://app.fossa.io/projects/git%2Bgithub.com%2Fshweshi%2FLaravel-Unsplash-Wrapper?ref=badge_large)

Support
-------

[](#support)

[![Buy Me A Coffee](https://camo.githubusercontent.com/9a769e616ce78645bf51d12e4179cfbfd72fb413722b284e0be3ec3c75a86010/68747470733a2f2f63646e2e6275796d6561636f666665652e636f6d2f627574746f6e732f64656661756c742d6f72616e67652e706e67)](https://www.buymeacoffee.com/shashi)

Happy Coding!
-------------

[](#happy-coding)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 80.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 ~262 days

Recently: every ~328 days

Total

6

Last Release

1708d ago

Major Versions

1.0.2 → 2.0.02018-02-10

2.0.0 → 3.0.02018-02-10

v1.0 → 4.0.02021-09-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/845b6925d29b813f7869c38e64b9cdc0ae7d1856511489f2c75faf788dbb44d6?d=identicon)[imspg](/maintainers/imspg)

---

Top Contributors

[![shweshi](https://avatars.githubusercontent.com/u/35127382?v=4)](https://github.com/shweshi "shweshi (33 commits)")[![jasperf](https://avatars.githubusercontent.com/u/344138?v=4)](https://github.com/jasperf "jasperf (6 commits)")[![fossabot](https://avatars.githubusercontent.com/u/29791463?v=4)](https://github.com/fossabot "fossabot (1 commits)")[![Katalam](https://avatars.githubusercontent.com/u/39590058?v=4)](https://github.com/Katalam "Katalam (1 commits)")

---

Tags

hacktoberfestlaravellaravel-5-packagelaravel-packagelaravel-unsplashlaravel-unsplash-wrappserlaravel-wrapperlaravel5phpunsplashunsplash-api

### Embed Badge

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

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

###  Alternatives

[skagarwal/google-places-api

Google Places Api

1913.0M8](/packages/skagarwal-google-places-api)[dcblogdev/laravel-microsoft-graph

A Laravel Microsoft Graph API (Office365) package

168285.5k1](/packages/dcblogdev-laravel-microsoft-graph)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1344.8k1](/packages/jasara-php-amzn-selling-partner-api)[grantholle/powerschool-api

A Laravel package to make interacting with PowerSchool less painful.

1715.6k1](/packages/grantholle-powerschool-api)

PHPackages © 2026

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