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

ActiveLibrary[API Development](/categories/api)

mahdimajidzadeh/laravel-unsplash
================================

Laravel package for Unsplash Api

v0.1.5(4y ago)1111.4k5[1 issues](https://github.com/MahdiMajidzadeh/Laravel-Unsplash/issues)MITPHPPHP ~5.6|~7.0|^8.0

Since Jan 4Pushed 4y ago2 watchersCompare

[ Source](https://github.com/MahdiMajidzadeh/Laravel-Unsplash)[ Packagist](https://packagist.org/packages/mahdimajidzadeh/laravel-unsplash)[ Docs](https://github.com/MahdiMajidzadeh/Laravel-Unsplash)[ RSS](/packages/mahdimajidzadeh-laravel-unsplash/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (5)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**

Install
-------

[](#install)

Via Composer

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

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

```
MahdiMajidzadeh\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="MahdiMajidzadeh\LaravelUnsplash\LaravelUnsplashServiceProvider"
```

Usage
-----

[](#usage)

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

List of methods:

### Photos

[](#photos)

```
$unsplash  = new MahdiMajidzadeh\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 MahdiMajidzadeh\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 MahdiMajidzadeh\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 MahdiMajidzadeh\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

34

—

LowBetter than 75% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 90% 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 ~307 days

Recently: every ~376 days

Total

6

Last Release

1566d ago

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

v0.1.5PHP ~5.6|~7.0|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6115476?v=4)[Mahdi Majidzadeh](/maintainers/MahdiMajidzadeh)[@MahdiMajidzadeh](https://github.com/MahdiMajidzadeh)

---

Top Contributors

[![MahdiMajidzadeh](https://avatars.githubusercontent.com/u/6115476?v=4)](https://github.com/MahdiMajidzadeh "MahdiMajidzadeh (18 commits)")[![nidhalkratos](https://avatars.githubusercontent.com/u/10298337?v=4)](https://github.com/nidhalkratos "nidhalkratos (1 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

laravellaravel-packagephotophpunsplashapilaravellaravel-packagephotoUnsplash

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.0k](/packages/craftcms-cms)[smodav/mpesa

M-Pesa API implementation

16467.9k1](/packages/smodav-mpesa)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[xchimx/laravel-unsplash

Laravel package for easy integration with the Unsplash API. It allows you to use the Unsplash API in your Laravel applications to fetch photos, collections, and user data.

247.6k](/packages/xchimx-laravel-unsplash)

PHPackages © 2026

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