Skip to content

PHP Bindings for Project Fluent's Rust implementation.

License

Notifications You must be signed in to change notification settings

Ennexa/fluent-php

Repository files navigation

fluent-php

Experimental PHP Bindings for Project Fluent's Rust implementation.

Example

<?php

$resource = <<<'FTL'
    hello = Hello, world!
    FTL;

try {
    $bundle = new FluentPhp\FluentBundle('en');
    $bundle->addResource($resource);
    $response = $bundle->formatPattern('hello', []);
    var_dump($response);
} catch (\Exception $e) {
    print_r($e);
}

See examples/ directory for advanced code samples.

License

GPL-3.0

About

PHP Bindings for Project Fluent's Rust implementation.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages