renmichaela / vibrant
一个方便的PHP包,包含一系列占位符照片API
1.2.0
2023-11-04 06:47 UTC
Requires
- guzzlehttp/guzzle: ^7.8
- laravel/pint: ^1.13
Requires (Dev)
- phpunit/phpunit: ^10.4
README
一个方便的PHP包,包含一系列占位符照片API
composer require renmichaela/vibrant
使用方法
use Vibrant\Random; use Vibrant\Formatters\StringFormat; use Vibrant\Formatters\HtmlFormat; use Vibrant\Formatters\ResponseFormat; // ... Random::{method}()->format(new StringFormat); # https://[apisource] Random::{method}()->format(new HtmlFormat); # <img src="https://[apisource]" alt="Random [Class]" /> Random::{method}()->format(new ResponseFormat); # Sets headers and echos image content