Download the PHP package nationatalents/gettext-php-scanner without Composer
On this page you can find all versions of the php package nationatalents/gettext-php-scanner. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download nationatalents/gettext-php-scanner
More information about nationatalents/gettext-php-scanner
Files in nationatalents/gettext-php-scanner
Download nationatalents/gettext-php-scanner
More information about nationatalents/gettext-php-scanner
Files in nationatalents/gettext-php-scanner
Vendor nationatalents
Package gettext-php-scanner
Short Description Php scanner and generator of .po files or .php files with prepared translations.
License GPL-3.0
Package gettext-php-scanner
Short Description Php scanner and generator of .po files or .php files with prepared translations.
License GPL-3.0
Please rate this library. Is it a good library?
Informations about the package gettext-php-scanner
GetText PHP Scanner
Description
The class to scan files/project and create or update .po file or .php file, used for localization. Could be used to scan any type of files, It will extract all strings like
Also with spaces between open/close brackets.
How to use it?
Check example/cli-generator.php too.
Configuration of \PhpScanner\Gettext() object via public properties
- $directory to be scanned accept array of directories or single string directory
- $file_extensions an array of allowed files extensions to be scanned
- $file_name output file name (full or relative path), default is default.po
- $outputFormat output format po or php, default is po
- $methodPrefixes an array of methods to be scanned, default is array('__', '_e', '_t', '-\>t')
- $verbose verbose output (usable in cli mode), default is false
- $keep keep the old file and append new translation, default is true
- $pattern regex pattern to recognize scanned methods, but it is recommended to set $methodPrefixes rather
Installation Using Composer
Using composer
If command composer require NationaTalentS/gettext-php-scanner or adding "NationaTalentS/gettext-php-scanner": "master" into require section of your composer.json won't work then you must add "repositories" into your composer.json:
All versions of gettext-php-scanner with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
The package nationatalents/gettext-php-scanner contains the following files
Loading the files please wait ....