Download the PHP package smmoosavi/twig-php-gettext without Composer
On this page you can find all versions of the php package smmoosavi/twig-php-gettext. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download smmoosavi/twig-php-gettext
More information about smmoosavi/twig-php-gettext
Files in smmoosavi/twig-php-gettext
Download smmoosavi/twig-php-gettext
More information about smmoosavi/twig-php-gettext
Files in smmoosavi/twig-php-gettext
Vendor smmoosavi
Package twig-php-gettext
Short Description Twig extension for smmoosavi/php-gettext.
License
Package twig-php-gettext
Short Description Twig extension for smmoosavi/php-gettext.
License
Please rate this library. Is it a good library?
Informations about the package twig-php-gettext
twig-php-gettext
Twig extension for smmoosavi/php-gettext.
How to Install
Using Composer
Create a composer.json file in your project root:
Then run the following composer command:
Note: twig and php-gettext will be installed with twig-php-gettext too.
How to use
Do everything required for twig and php-gettext and add following line:
Now you can use __
, trans
in your template.
Complete example
Reference
Functions
trans('Hi')
__('Hi')
Filters
'Hi'|trans
'Hi'|__
Tags
trans
plural
endtrans
Examples
Template:
Translations in .po file:
Template:
Translations in .po file:
Template:
Translations in .po file:
All versions of twig-php-gettext with dependencies
PHP Build Version
Package Version
The package smmoosavi/twig-php-gettext contains the following files
Loading the files please wait ....