PHPackages                             randimg/faker-randimg-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. [Image &amp; Media](/categories/media)
4. /
5. randimg/faker-randimg-provider

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

randimg/faker-randimg-provider
==============================

Faker PHP Provider. Generate random url images using rand-img.com

1.0.0(7y ago)1332MITPHPPHP ~5.6|~7.0

Since Jul 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/SiroDiaz/RandImgProvider)[ Packagist](https://packagist.org/packages/randimg/faker-randimg-provider)[ Docs](https://github.com/SiroDiaz/RandImgProvider)[ RSS](/packages/randimg-faker-randimg-provider/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (2)Used By (0)

RandImgProvider for Faker generator
===================================

[](#randimgprovider-for-faker-generator)

[![Latest Version on Packagist](https://camo.githubusercontent.com/eaaa08fbcf87a6b9a197820b84ec094befe128bbaad0c9f7b2cf0898cd6e24f4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72616e64696d672f66616b65722d72616e64696d672d70726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/randimg/faker-randimg-provider)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/f41a896e420066dd7fc1e7c320656792210a7193e3feebc55265d4a099b45c04/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5369726f4469617a2f52616e64496d6750726f76696465722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/SiroDiaz/RandImgProvider)[![Coverage Status](https://camo.githubusercontent.com/5ee8a12690e2bf42db490e32e3765f4fa16f7011d0828fbf3580be2791d41d1f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f5369726f4469617a2f52616e64496d6750726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/SiroDiaz/RandImgProvider/code-structure)[![Quality Score](https://camo.githubusercontent.com/746bbf7ba110e9e216e5c629ee761733894e76fea67ee18e67e88ed6fea42009/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f5369726f4469617a2f52616e64496d6750726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/SiroDiaz/RandImgProvider)[![Total Downloads](https://camo.githubusercontent.com/985b26f6ecf216472ef75049bb516242b209678f164e861e95ccb0135e5c3a73/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72616e64696d672f66616b65722d72616e64696d672d70726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/SiroDiaz/RandImgProvider)

Faker provider for generating random images in your PHP projects. The default faker image provider, Lorem Pixel, is fine but it has too many requests and slow down your testing environment. This is the main reason why i made this PHP package.

Install
-------

[](#install)

Via Composer

```
$ composer require randimg/faker-randimg-provider
```

Usage
-----

[](#usage)

```
use Faker\Factory;
use Faker\Generator;
use Siro\RandImg\RandImgProvider;

$faker = Factory::create();
$faker->addProvider(new RandImgProvider($faker));

$faker->imageUrl(); // http://www.rand-img.com/720/480
$faker->imageUrl(300, 200); // http://www.rand-img.com/300/200
$faker->imageUrl(720, 480, 'sky');  // http://www.rand-img.com/720/480/sky
$faker->imageUrl(720, 480, 'food', ['rand' => true]);   // http://www.rand-img.com/720/480/food?rand=4234532
$faker->imageUrl(720, 480, 'food', ['rand' => true, 'blur' => 4, 'gray' => 1]); // http://www.rand-img.com/720/480/food?rand=4234532&blur=4&gray=1

$faker->image(__DIR__, 200, 200);   // image path and filename joined
$faker->image(__DIR__, 200, 200);   // image path and filename joined
$faker->gif();  // gif path and filename
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email [siro\_diaz@yahoo.com](mailto:siro_diaz@yahoo.com) instead of using the issue tracker.

Credits
-------

[](#credits)

- [Siro Díaz Palazón](https://github.com/SiroDiaz)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% 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

Unknown

Total

1

Last Release

2852d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7469286?v=4)[Siro Díaz Palazón](/maintainers/SiroDiaz)[@SiroDiaz](https://github.com/SiroDiaz)

---

Top Contributors

[![SiroDiaz](https://avatars.githubusercontent.com/u/7469286?v=4)](https://github.com/SiroDiaz "SiroDiaz (14 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

fakerfaker-generatorfaker-libraryfaker-providerlaravellaravel-5phpphp7randomrandomphpfakerimagessirodiazfake-imagesfaker-providerrandimgrandom images

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/randimg-faker-randimg-provider/health.svg)

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

###  Alternatives

[smknstd/fakerphp-picsum-images

Alternative image provider for fakerphp using picsum.photos

45218.1k3](/packages/smknstd-fakerphp-picsum-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)
