awcodes / html-faker
更优秀的html模拟器。
v0.3.0
2024-04-06 14:54 UTC
Requires
- php: ^8.1
- illuminate/contracts: ^10.0|^11.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- larastan/larastan: ^2.9.2
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.8|^8.1
- orchestra/testbench: ^8.0|^9.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- spatie/laravel-ray: ^1.26
README
安装
您可以通过composer安装此包
composer require awcodes/html-faker
用法
use 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 html
测试
composer test
变更日志
有关最近更改的更多信息,请参阅变更日志
贡献
有关详细信息,请参阅贡献指南
安全漏洞
请查看我们的安全策略了解如何报告安全漏洞。
致谢
许可证
MIT许可证(MIT)。有关更多信息,请参阅许可证文件