PHPackages                             nationatalents/gettext-php-scanner - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. nationatalents/gettext-php-scanner

ActiveLibrary

nationatalents/gettext-php-scanner
==================================

Php scanner and generator of .po files or .php files with prepared translations.

1.0.4(7y ago)0153↓100%GPL-3.0PHPPHP &gt;=5.3.0

Since Mar 29Pushed 7y ago1 watchersCompare

[ Source](https://github.com/NationaTalentS/gettext-php-scanner)[ Packagist](https://packagist.org/packages/nationatalents/gettext-php-scanner)[ RSS](/packages/nationatalents-gettext-php-scanner/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (6)Used By (0)

GetText PHP Scanner
===================

[](#gettext-php-scanner)

Description
-----------

[](#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

```
__('Hello World'), _e("Hello again"), _e("Hello again %s", $param), _t('Hello onc again'), ->t('... and again').

```

Also with spaces between open/close brackets.

```
__( 'Hello World' ), _e( "Hello again" ), _e( "Hello again %s", $param), _t( 'Hello onc again' ), ->t( '... and again' )

```

How to use it?
--------------

[](#how-to-use-it)

```
