Skip to content

🐘 Juicy(fx) PHP client β€’ 🐘+ 🍊 = ❀

License

Notifications You must be signed in to change notification settings

juicyfx/juicyphp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ•Ή 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.


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

About

🐘 Juicy(fx) PHP client β€’ 🐘+ 🍊 = ❀

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published