PHPackages                             dmdnkv/faker-someimage-providers - 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. dmdnkv/faker-someimage-providers

ActiveLibrary

dmdnkv/faker-someimage-providers
================================

Fake image providers for Faker PHP library (fzaninotto/Faker). Implemented providers: LoremFlickr (http://loremflickr.com), DummyImage (http://dummyimage.com)

1.0.0(9y ago)14.9k1[2 PRs](https://github.com/dmdnkv/faker-someimage-providers/pulls)MITPHPPHP &gt;=5.6.0

Since Jun 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/dmdnkv/faker-someimage-providers)[ Packagist](https://packagist.org/packages/dmdnkv/faker-someimage-providers)[ RSS](/packages/dmdnkv-faker-someimage-providers/feed)WikiDiscussions master Synced 2mo ago

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

Faker LoremFlickr Provider
==========================

[](#faker-loremflickr-provider)

Fake images provider for [Faker](https://github.com/fzaninotto/Faker) PHP library.

There are several image providers implemented:

- `LoremFlickr` ([LoremFlickr](https://github.com/MastaBaba/LoremFlickr) service is used as images source).
- `DummyImage` ([Dynamic Dummy Image Generator](http://dummyimage.com/) service is used as images source).

Installation
============

[](#installation)

```
composer require dmdnkv/faker-someimage-provider

```

Basic Usage
===========

[](#basic-usage)

LoremFlickr
-----------

[](#loremflickr)

```

use Dmdnkv\Faker\Provider\LoremFlickr;

/**
 * Add LoremFlickr provider to faker generator
 */

$faker = new Faker\Generator();
$faker->addProvider(new LoremFlickr($faker));

/**
 * Get url to random picture matching the keywords brazil or rio, of 320 x 240 pixels.
 */

$imageUrl = $faker->someImageUrl(
    320,
    240,
    [
        LoremFlickr::OPTION_KEYWORDS => ['brazil', 'rio']
    ]
);

/**
 * Get url to random picture matching the keywords paris and girl, of 320 x 240 pixels.
 */

$imageUrl = $faker->someImageUrl(
    320,
    240,
    [
        LoremFlickr::OPTION_KEYWORDS => ['paris', 'girl'],
        LoremFlickr::OPTION_LOGIC => LoremFlickr::KEYWORDS_LOGIC_AND,
    ]
);

/**
 * Get url to random picture matching the keywords brazil or rio, of 320 x 240 pixels.
 * There is color filter applied to image (available filters: gray, red, green, blue).
 */

$imageUrl = $faker->someImageUrl(
    320,
    240,
    [
        LoremFlickr::OPTION_KEYWORDS => ['brazil', 'rio'],
        LoremFlickr::OPTION_FILTER => LoremFlickr::FILTER_GRAY,
    ]
);

/**
 * Download random picture matching the keywords brazil or rio, of 320 x 240 pixels.
 * Save picture to system temp folder and return filename only.
 */

$fileName = $this->faker->someImage(
    320,
    240,
    [
        LoremFlickr::OPTION_KEYWORDS => ['brazil', 'rio'],
        LoremFlickr::OPTION_DIR => sys_get_temp_dir(),
        LoremFlickr::OPTION_FULL_PATH => false
    ]
);

```

DummyImage
----------

[](#dummyimage)

```

use Dmdnkv\Faker\Provider\DummyImage;

/**
 * Add DummyImage provider to faker generator
 */

$faker = new Faker\Generator();
$faker->addProvider(new DummyImage($faker));

/**
 * Get url to PNG picture with black background color and white text `some text here`
 */
$imageUrl = $faker->someImageUrl(
    320,
    240,
    [
        DummyImage::OPTION_BG_COLOR => '000000',
        DummyImage::OPTION_FG_COLOR => 'ffffff',
        DummyImage::OPTION_TEXT => 'some text here',
        DummyImage::OPTION_EXTENSION => DummyImage::EXTENSION_PNG,
    ]
);

/**
 * Download PNG picture with black background color and white text `some text here`.
 * Save picture to system temp folder and return filename only.
 */
$fileName = $faker->someImageUrl(
    320,
    240,
    [
        DummyImage::OPTION_BG_COLOR => '000000',
        DummyImage::OPTION_FG_COLOR => 'ffffff',
        DummyImage::OPTION_TEXT => 'some text here',
        DummyImage::OPTION_EXTENSION => DummyImage::EXTENSION_PNG,
        DummyImage::OPTION_DIR => sys_get_temp_dir(),
        DummyImage::OPTION_FULL_PATH => false,
    ]
);

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3609d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/96f8f3a0f05eb366e70e29c03560f1c91058ba19a9e18528911c54787dc0157f?d=identicon)[dmdnkv](/maintainers/dmdnkv)

---

Top Contributors

[![dmdnkv](https://avatars.githubusercontent.com/u/2073188?v=4)](https://github.com/dmdnkv "dmdnkv (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dmdnkv-faker-someimage-providers/health.svg)

```
[![Health](https://phpackages.com/badges/dmdnkv-faker-someimage-providers/health.svg)](https://phpackages.com/packages/dmdnkv-faker-someimage-providers)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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