Warning
This package is deprecated and no longer maintained. Please use awcodes/content-faker instead.
You can install the package via composer:
composer require awcodes/html-fakeruse Awcodes\HtmlFaker\HtmlFaker;
HtmlFaker::make()
->heading(int | string | null $level = 2)
->paragraphs(int $count = 1, bool $withRandomLinks = false)
->unorderedList(int $count = 1)
->orderedList(int $count = 1)
->image(int $width = 640, int $height = 480, string $text = null)
->link(string $text = null, string $url = null)
->video(?string $provider = 'youtube', ?int $width = 640, ?int $height = 480)
->details()
->code(string | null $className = 'hljs')
->blockquote()
->hr()
->br()
->table()
->generate(); // <-- this is required to generate the htmlcomposer testPlease see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.