juicyfx/juicy

🐘 PHP client for serverless juicy functions

Fund package maintenance!
f3l1x

v0.1.0 2021-01-02 16:44 UTC

This package is auto-updated.

Last update: 2024-04-17 18:37:25 UTC


README

68747470733a2f2f62616467656e2e6e65742f6769746875622f636865636b732f6a7569637966782f6a75696379706870 68747470733a2f2f62616467656e2e6e65742f636f766572616c6c732f632f6769746875622f6a7569637966782f6a75696379706870 68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f646d2f6a7569637966782f6a75696379 68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f6a7569637966782f6a75696379 68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f6a7569637966782f6a75696379 68747470733a2f2f62616467656e2e6e65742f6769746875622f6c6963656e73652f6a7569637966782f6a75696379706870

🕹 f3l1x.io | 💻 f3l1x | 🐦 @xf3l1x

Usage

To install latest version of juicyfx/juicy use Composer.

composer require juicyfx/juicy

Versions

State Version Branch PHP
dev ^0.2 master >=7.2
stable ^0.1 master >=7.2

Usage

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,
]);

Development

See how to contribute to this package. This package is currently maintained by these authors.

538058?v=3&s=80

Consider to support f3l1x. Also thank you for using this package.