PHPackages                             ph-7/image-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. ph-7/image-unsplash

ActiveLibrary[API Development](/categories/api)

ph-7/image-unsplash
===================

Get easily any Unsplash images with a clean PHP class

v3.2(8y ago)92032MITPHPPHP &gt;=7.1.0

Since Aug 27Pushed 8y agoCompare

[ Source](https://github.com/pH-7/Image-Unsplash)[ Packagist](https://packagist.org/packages/ph-7/image-unsplash)[ Docs](http://ph7.me)[ RSS](/packages/ph-7-image-unsplash/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Unsplash Helper
===============

[](#unsplash-helper)

Get Unsplash Images Easily
--------------------------

[](#get-unsplash-images-easily)

Get easily any Unsplash images with a clean PHP class.

It's a really lightweight and simple PHP class that helps you to get easily any images from Unsplash.com while keeping your project clean.

Example
-------

[](#example)

```
use PH7\Image\Unsplash;

$unsplash = new Unsplash();
$unsplash->setWidth(600)
    ->setHeight(400)
    ->setQuality(80)
    ->setImageId('photo-1462045504115-6c1d931f07d1');

echo '';

$unsplash->setImageId('photo-1500045992661-f978470eaf7b');
$unsplash->setFit(Unsplash::MAX_FIT);

echo '';
```

Installation
------------

[](#installation)

1. Install Composer ()
2. Include it in your project:

```
composer require ph-7/image-unsplash
```

Requirements
------------

[](#requirements)

- PHP 7.1 or higher
- [Composer](https://getcomposer.org)

Author
------

[](#author)

Made with ♥ and care by [Pierre-Henry Soria](http://ph7.me)

License
-------

[](#license)

[MIT License](https://opensource.org/licenses/mit-license.php). Enjoy! 😃

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~2 days

Total

4

Last Release

3221d ago

Major Versions

v1.0 → v2.02017-08-27

v2.0 → v3.02017-09-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/b6d95da236687f1dca4f7d70d60037c70ef217120ea195df23a39a412ba594e0?d=identicon)[ph-7](/maintainers/ph-7)

---

Top Contributors

[![pH-7](https://avatars.githubusercontent.com/u/1325411?v=4)](https://github.com/pH-7 "pH-7 (27 commits)")

---

Tags

imagelibrarylightweightphotophotographyphotosphp-71php-libraryphp71pictureunsplashunsplash-apiunsplash-clientunsplash-helperunsplash-php-libraryapiimageimagesphotosphotoUnsplash

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ph-7-image-unsplash/health.svg)

```
[![Health](https://phpackages.com/badges/ph-7-image-unsplash/health.svg)](https://phpackages.com/packages/ph-7-image-unsplash)
```

###  Alternatives

[mtownsend/remove-bg

A PHP package to interface with the remove.bg api.

181381.6k](/packages/mtownsend-remove-bg)[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.3k](/packages/xchimx-laravel-unsplash)[dantsu/php-osm-static-api

PHP library to easily get static image from OpenStreetMap (OSM), add markers and draw lines.

97154.8k1](/packages/dantsu-php-osm-static-api)[mahdimajidzadeh/laravel-unsplash

Laravel package for Unsplash Api

1111.4k](/packages/mahdimajidzadeh-laravel-unsplash)[tinify/magento2

Make your web shop faster by compressing your JPEG and PNG images. This plugin automatically optimizes your images by integrating with the popular image compression services TinyJPG and TinyPNG.

4246.1k](/packages/tinify-magento2)[glooby/pexels

Pexels API Client for www.pexels.com

2732.3k1](/packages/glooby-pexels)

PHPackages © 2026

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