toneflix-code / fakerphp-lorem-toneflix
This package is abandoned and no longer maintained.
The author suggests using the toneflix/faker-pictwo package instead.
An alternative image provider for fakerphp using Lorem Toneflix.
Package info
github.com/toneflix/fakerphp-lorem-toneflix
pkg:composer/toneflix-code/fakerphp-lorem-toneflix
Fund package maintenance!
1.0.3
2025-10-14 12:13 UTC
Requires
- php: ^8.0|^8.1|8.2|8.3
- fakerphp/faker: ^1.10|^1.20
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- phpunit/phpunit: ^9.5
- spatie/ray: ^1.28
- vimeo/psalm: ^4.8
Suggests
- ext-curl: *
Provides
None
Conflicts
None
Replaces
None
README
Introduction
Alternative image provider for fakerphp using pictwo.toneflix.net
Installation
You can install the package via composer in dev dependency section:
composer require --dev toneflix/faker-pictwo
Usage
$faker = \Faker\Factory::create(); $faker->addProvider(new \Toneflix\FakerPicTwo\FakerPicTwoProvider($faker)); // return a string that contains a url like 'https://pictwo.toneflix.net/images/avatar?w=800&h=600' $faker->imageUrl(width: 800, height: 600, category: 'avatar'); // download a properly sized image from pictwo.toneflix.net 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 :
- effects (grayscale, pixelate)
- returning a specific photo based on an id instead of a random one (ex: https://pictwo.toneflix.net/images/image/00020)
Testing
composer test
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.