yanick-k/images-faker-lorem

Library for only loremspace provider

v1.0.0 2022-01-17 20:03 UTC

This package is auto-updated.

Last update: 2022-05-17 21:08:02 UTC


README

Image provider for faker

Install

composer require yanick-k/images-faker-lorem

Usage

use Faker\Factory as Faker;

$faker = Faker::create();
$faker->addProvider(new \Lorem\Faker\LoremSpaceProvider($faker));

 $url = $faker->loremSpaceUrl(\Lorem\Faker\LoremSpaceProvider::CATEGORY_FACE); // https://api.lorem.space/image/face?w=640&h=480
// download image to tmp dir
$path = $faker->loremSpace(\Lorem\Faker\LoremSpaceProvider::CATEGORY_FACE)

All Categories

  • Game
  • Movie
  • Album
  • Book
  • Face
  • Fashion
  • Shoes
  • Watch
  • Furniture
  • Pizza
  • Burger
  • Drink
  • Car
  • House