PHPackages                             adminui/fakerphp-picsum-images - 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. [Image &amp; Media](/categories/media)
4. /
5. adminui/fakerphp-picsum-images

ActiveLibrary[Image &amp; Media](/categories/media)

adminui/fakerphp-picsum-images
==============================

Alternative image provider for fakerphp using picsum.photos

v1.0.0(3y ago)0601MITPHPPHP ^8.0

Since Oct 2Pushed 3y agoCompare

[ Source](https://github.com/AdminUI/fakerphp-picsum-images)[ Packagist](https://packagist.org/packages/adminui/fakerphp-picsum-images)[ Docs](https://github.com/adminui/fakerphp-picsum-images)[ RSS](/packages/adminui-fakerphp-picsum-images/feed)WikiDiscussions main Synced 4w ago

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

Fakerphp Picsum Images
======================

[](#fakerphp-picsum-images)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5af524f2fba484357b7332bb1e0d669abb254664e18df7bc813d91fb003e92c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61646d696e75692f66616b65727068702d70696373756d2d696d616765732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/adminui/fakerphp-picsum-images)[![GitHub Tests Action Status](https://camo.githubusercontent.com/de2ddb21e7a9113ad1cbe29047de8bd3bc877fb94ec886f45f2d62409cbacce1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f61646d696e75692f66616b65727068702d70696373756d2d696d616765732f54657374733f6c6162656c3d7465737473)](https://github.com/adminui/fakerphp-picsum-images/actions?query=workflow%3ATests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/41919613b73dacb5fec6fa54a0d07301f4341161d3db88195bd43362d6204aba/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f61646d696e75692f66616b65727068702d70696373756d2d696d616765732f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/adminui/fakerphp-picsum-images/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/2a468d06d53d2f989bcf3c91cace3d2492111b2c984a718a569635db332c43b8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61646d696e75692f66616b65727068702d70696373756d2d696d616765732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/adminui/fakerphp-picsum-images)

Introduction
------------

[](#introduction)

Alternative image provider for [fakerphp](https://github.com/fakerphp/faker) using [picsum.photos](https://picsum.photos)

*This package has been forked from [mmo/faker-images](https://github.com/morawskim/faker-images) for [fzaninotto/faker](https://github.com/fzaninotto/Faker) (deprecated [~ Oct 2020](https://marmelab.com/blog/2020/10/21/sunsetting-faker.html)).*

Ressources
----------

[](#ressources)

- [Tutorial for laravel](https://smknstd.medium.com/fake-beautiful-images-in-laravel-51062967d1db)

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

[](#installation)

You can install the package via composer in dev dependency section:

```
composer require --dev adminui/fakerphp-picsum-images
```

Usage
-----

[](#usage)

```
$faker = \Faker\Factory::create();
$faker->addProvider(new \AdminUI\FakerPicsumImages\FakerPicsumImagesProvider($faker));

// return a string that contains a url like 'https://picsum.photos/800/600/'
$faker->imageUrl($width = 800, $height = 600);

// download a properly sized image from picsum into a file with a file path like '/tmp/13b73edae8443990be1aa8f1a483bc27.jpg'
$filePath= $faker->image($dir = '/tmp', $width = 640, $height = 480);
```

Also, there are some more options :

- alternative webp format
- effects (grayscale, blurry)
- returning a specific photo based on an id instead of a random one (ex: )

Credits
-------

[](#credits)

- [Arnaud Becher](https://github.com/smknstd)
- [Marcin Morawski ](https://github.com/morawskim)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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

Total

2

Last Release

1315d ago

Major Versions

v0.0.1 → v1.0.02022-10-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/f4c5d2f9a5c85501068fd3a8aafe6d52d05975801e5c445abd9a1a86595b896a?d=identicon)[AdminUI](/maintainers/AdminUI)

---

Top Contributors

[![smknstd](https://avatars.githubusercontent.com/u/2412608?v=4)](https://github.com/smknstd "smknstd (13 commits)")

---

Tags

phpfakerimagespicsum

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/adminui-fakerphp-picsum-images/health.svg)

```
[![Health](https://phpackages.com/badges/adminui-fakerphp-picsum-images/health.svg)](https://phpackages.com/packages/adminui-fakerphp-picsum-images)
```

###  Alternatives

[smknstd/fakerphp-picsum-images

Alternative image provider for fakerphp using picsum.photos

45218.1k3](/packages/smknstd-fakerphp-picsum-images)[mmo/faker-images

Different images provider for Faker

59370.3k6](/packages/mmo-faker-images)[alirezasedghi/laravel-image-faker

A library to generate fake images for Laravel

1623.2k2](/packages/alirezasedghi-laravel-image-faker)[tihiy-production/php-image-compressor

ImageCompressor - this is an easy way to compress images on the fly

243.8k](/packages/tihiy-production-php-image-compressor)

PHPackages © 2026

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