PHPackages                             bluemmb/faker-picsum-photos-provider - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bluemmb/faker-picsum-photos-provider

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bluemmb/faker-picsum-photos-provider
====================================

picsum.photos provider for Faker

v2.0(5y ago)31244.2k↓24.4%4[1 issues](https://github.com/bluemmb/Faker-PicsumPhotos/issues)1MITPHPPHP ^7.1 || ^8.0CI failing

Since Aug 18Pushed 4y ago2 watchersCompare

[ Source](https://github.com/bluemmb/Faker-PicsumPhotos)[ Packagist](https://packagist.org/packages/bluemmb/faker-picsum-photos-provider)[ RSS](/packages/bluemmb-faker-picsum-photos-provider/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (2)Versions (5)Used By (1)

Picsum.photos Provider for PHP Faker
====================================

[](#picsumphotos-provider-for-php-faker)

[![Build Status](https://camo.githubusercontent.com/f6383304f76ca4f2027657b6a44bf6e63d1b49085503d094ae41c862e30e738e/68747470733a2f2f7472617669732d63692e6f72672f626c75656d6d622f46616b65722d50696373756d50686f746f732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bluemmb/Faker-PicsumPhotos)

*Build gives error for php 7.1 and 7.2 versions only because of phpunit version*

[picsum.photos](http://picsum.photos/) provider for [Faker](https://github.com/FakerPHP/Faker).

Versions
--------

[](#versions)

- [Version 2](#version-2)
- [Version 1 (old)](https://github.com/bluemmb/Faker-PicsumPhotos/tree/v1)

Version 2
---------

[](#version-2)

**Notice: This is documentation for new version, for older version go to [Version v1](https://github.com/bluemmb/Faker-PicsumPhotos/tree/v1)**

### Install

[](#install)

Install the PicsumPhotos Provider by adding `bluemmb/faker-picsum-photos-provider: "^2.0"` to your composer.json or from CLI:

```
$ composer require bluemmb/faker-picsum-photos-provider ^2.0

```

### Usage

[](#usage)

```
$faker = Faker\Factory::create();
$faker->addProvider(new Bluemmb\Faker\PicsumPhotosProvider($faker));

// simple usage
$url = $faker->imageUrl();              // https://picsum.photos/640/480
$url = $faker->imageUrl(500);           // https://picsum.photos/500/480
$url = $faker->imageUrl(500,500);       // https://picsum.photos/500/500

/*
 * $specificOrSeed
 *      - false | null : create simple url with no id or seed
 *      - true         : create id/{random id} url
 *      - int          : create id/{int} url
 *      - string       : create seed/{seed} url
 */
$url = $faker->imageUrl(500,500, false);    // https://picsum.photos/500/500
$url = $faker->imageUrl(500,500, true);     // https://picsum.photos/id/70/500/500
$url = $faker->imageUrl(500,500, true);     // https://picsum.photos/id/413/500/500
$url = $faker->imageUrl(500,500, 33);       // https://picsum.photos/id/33/500/500
$url = $faker->imageUrl(500,500, '33');     // https://picsum.photos/seed/33/500/500
$url = $faker->imageUrl(500,500, 'wow');    // https://picsum.photos/seed/wow/500/500

// Some image id's are invalid, So the package automatically replaces them
$url = $faker->imageUrl(500,500, 86);       // https://picsum.photos/id/82/500/500

/*
 *  More options :
 *  function imageUrl(
 *      $width = 640, $height = 480, $specificOrSeed=null,
 *      $grayscale=null, $blur=null, $file_ending=null
 * )
 */

// https://picsum.photos/100/100?grayscale=true
$url = $faker->imageUrl(
    100,100, false,
    true
);

// https://picsum.photos/g/100/100?blur=true
$url = $faker->imageUrl(
    100,100, false,
    false, true
);

// https://picsum.photos/100/100?blur=5
$url = $faker->imageUrl(
    100,100, false,
    false, 5
);

// https://picsum.photos/300/100.jpg
$url = $faker->imageUrl(
    300,100, false,
    false, false, 'jpg'
);

// https://picsum.photos/id/88/300/100.webp?grayscale=true&blur=3
$url = $faker->imageUrl(
    300,100, 88,
    true, 3, 'webp'
);
```

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity45

Moderate usage in the ecosystem

Community14

Small or concentrated contributor base

Maturity71

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 ~299 days

Total

4

Last Release

1978d ago

Major Versions

v1.x-dev → v2.x-dev2021-02-02

PHP version history (2 changes)v1.0PHP ^5.3.3 || ^7.0

v2.x-devPHP ^7.1 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7195720?v=4)[Mohammad Eftekhari](/maintainers/bluemmb)[@bluemmb](https://github.com/bluemmb)

---

Top Contributors

[![bluemmb](https://avatars.githubusercontent.com/u/7195720?v=4)](https://github.com/bluemmb "bluemmb (37 commits)")

---

Tags

fakerphotospicsumfakerproviderpicsum.photos

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bluemmb-faker-picsum-photos-provider/health.svg)

```
[![Health](https://phpackages.com/badges/bluemmb-faker-picsum-photos-provider/health.svg)](https://phpackages.com/packages/bluemmb-faker-picsum-photos-provider)
```

###  Alternatives

[verbb/formie

The most user-friendly forms plugin for Craft.

102393.6k70](/packages/verbb-formie)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54681.3k19](/packages/solspace-craft-freeform)[blackfire/player

A powerful web crawler and web scraper with Blackfire support

49617.1k](/packages/blackfire-player)[aalaap/faker-youtube

Faker provider for generating fake YouTube video URLs

2292.3k](/packages/aalaap-faker-youtube)[xvladqt/faker-lorem-flickr

loremflickr.com provider for Faker

1585.6k1](/packages/xvladqt-faker-lorem-flickr)[directorytree/dummy

439.9k](/packages/directorytree-dummy)

PHPackages © 2026

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