Skip to main content

flayyer package


Learn how to ingrate Flayyer with any PHP framework. Here you will find the required documentation to use your templates on your websites. Note: PHP 7.1+ is required.

We have created a library that can help you creating valid Flayyer URLs and so avoiding any potential issues with manually encoding values.

It is built as a PHP Composer package and is very lightweight and has zero dependencies. You can check the source-code on our GitHub: flayyer/flayyer-php.

Use Composer to install this package.
composer require flayyer/flayyer

Basic usage is very straight-forward:

require_once 'vendor/flayyer/flayyer/src/Flayyer.php';
$flayyer = new Flayyer('tenant', 'deck', 'template');
$flayyer->variables = [ 'title' => 'Title' ];
// Use this URL string in your <head/> tags
$url = $flayyer->href();
Last updated on by Patricio López Juri