juicyfx / juicy
🐘 PHP客户端用于无服务器juicy函数
v0.1.0
2021-01-02 16:44 UTC
Requires
- php: >=7.2
- guzzlehttp/guzzle: ^6.5.5 || ^7.2.0
Requires (Dev)
- mockery/mockery: ^1.3.3
- ninjify/nunjuck: ^0.4.0
- ninjify/qa: ^0.12.0
- phpstan/phpstan: ^0.12
- phpstan/phpstan-deprecation-rules: ^0.12
- phpstan/phpstan-nette: ^0.12
- phpstan/phpstan-strict-rules: ^0.12
This package is auto-updated.
Last update: 2024-09-17 19:26:12 UTC
README
🕹 f3l1x.io | 💻 f3l1x | 🐦 @xf3l1x
用法
要安装juicyfx/juicy
的最新版本,请使用Composer。
composer require juicyfx/juicy
版本
用法
PDF(x)
use JuicyFx\Juicy\JuicyFx; $client = JuicyFx::createPdf(); $client = JuicyFx::createPdf(['base_uri' => 'your-pdfx.now.sh']); $response = $client->pdf()->url('https://f3l1x.io'); $response = $client->pdf()->raw('raw string'); $response = $client->pdf()->json([); 'body' => 'post body' ]); $response = $client->pdf()->json([ 'body' => 'post data', 'headerTemplate' => '<div style="font-size: 30px;">HEADER</div>', 'footerTemplate' => '<div style="font-size: 30px;">FOOTER</div>', ], [ 'displayHeaderFooter' => 1, 'marginTop' => 100, 'marginBottom' => 100, ]);
开发
查看如何为此包做出贡献。该包目前由以下作者维护。
请考虑支持 f3l1x。同时感谢您使用此包。