PHPackages                             audero/audero-shared-gettext - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. audero/audero-shared-gettext

ActiveLibrary[Localization &amp; i18n](/categories/localization)

audero/audero-shared-gettext
============================

Audero Shared Gettext allows to bypass the problem of translations, loaded via the gettext function, that are cached by Apache.

1.0.0(12y ago)42651CC-BY-NC-4.0JavaScriptPHP &gt;=5.3.0

Since Jan 20Pushed 12y ago2 watchersCompare

[ Source](https://github.com/AurelioDeRosa/Audero-Shared-Gettext)[ Packagist](https://packagist.org/packages/audero/audero-shared-gettext)[ Docs](https://github.com/AurelioDeRosa/Audero-Shared-Gettext/)[ RSS](/packages/audero-audero-shared-gettext/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Audero Shared Gettext
=====================

[](#audero-shared-gettext)

[Audero Shared Gettext](https://github.com/AurelioDeRosa/Audero-Shared-Gettext) is a PHP library that allows you to bypass the problem of the translations, loaded via the gettext function, that are cached by Apache. In fact, once a translation is loaded Apache caches it, so unless you can restart the engine any update to a translation file won't be seen. This is particularly annoying if you work on a shared hosting where you don't have administrator permissions.

Requirements
------------

[](#requirements)

This library requires PHP version 5.3 or higher.

Download
--------

[](#download)

### Download via [Composer](http://getcomposer.org/)

[](#download-via-composer)

You can obtain "Audero Shared Gettext" via [Composer](http://getcomposer.org/) adding the following lines to your `composer.json`:

```
"require": {
    "audero/audero-shared-gettext": "1.0.*"
}

```

And then run the `install` command to resolve and download the dependencies:

```
php composer.phar install

```

Composer will install the library to your project's `vendor/audero` directory.

### Download via [Git](http://git-scm.com/)

[](#download-via-git)

If you haven't or don't want to use [Composer](http://getcomposer.org/), you can download the library from its [repository](https://github.com/AurelioDeRosa/Audero-Shared-Gettext) via [Git](http://git-scm.com/) running the following command:

```
git clone https://github.com/AurelioDeRosa/Audero-Shared-Gettext.git

```

Usage
-----

[](#usage)

[Audero Shared Gettext](https://github.com/AurelioDeRosa/Audero-Shared-Gettext) is very easy to use. However, since the library uses namespaces and follows the [PSR standards](https://github.com/php-fig/fig-standards), you've to use an autoloader to dynamically load the classes needed. After that, you have to create an `SharedGettext` instance and call the method you need.

### Installed via [Composer](http://getcomposer.org/)

[](#installed-via-composer)

If you installed the library using [Composer](http://getcomposer.org/), you can rely on the its autoloader. So, after included the latter, you can use one of the previously cited methods as shown in the following example.

#### Bypass the cache problem (main usage)

[](#bypass-the-cache-problem-main-usage)

```

```

### Installed via [Git](http://git-scm.com/)

[](#installed-via-git)

If you obtained the code via [Git](http://git-scm.com/), you have to load the library by your own. Before using it, you've to add the path to the library to the PHP include path as shown in the following example.

#### Delete old translations

[](#delete-old-translations)

```

```

License
-------

[](#license)

[Audero Shared Gettext](https://github.com/AurelioDeRosa/Audero-Shared-Gettext) is licensed under the [CC BY-NC 4.0](http://creativecommons.org/licenses/by-nc/4.0/) ("Creative Commons Attribution NonCommercial 4.0")

Authors
-------

[](#authors)

[Aurelio De Rosa](http://www.audero.it) (Twitter: [@AurelioDeRosa](https://twitter.com/AurelioDeRosa))

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4492d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9975cae9a37db9120dac22b0014a3dcf81557c62500bc290281c12019c151a5d?d=identicon)[AurelioDeRosa](/maintainers/AurelioDeRosa)

---

Top Contributors

[![AurelioDeRosa](https://avatars.githubusercontent.com/u/1430979?v=4)](https://github.com/AurelioDeRosa "AurelioDeRosa (1 commits)")

---

Tags

internationalizationi18ngettext

### Embed Badge

![Health badge](/badges/audero-audero-shared-gettext/health.svg)

```
[![Health](https://phpackages.com/badges/audero-audero-shared-gettext/health.svg)](https://phpackages.com/packages/audero-audero-shared-gettext)
```

###  Alternatives

[symfony/intl

Provides access to the localization data of the ICU library

2.6k199.8M1.1k](/packages/symfony-intl)[gettext/gettext

PHP gettext manager

70530.2M101](/packages/gettext-gettext)[gettext/languages

gettext languages with plural rules

7530.3M10](/packages/gettext-languages)[punic/punic

PHP-Unicode CLDR

1542.9M29](/packages/punic-punic)[aura/intl

The Aura Intl package provides internationalization tools, specifically message translation.

898.3M4](/packages/aura-intl)[sepia/po-parser

Gettext \*.PO file parser for PHP.

1271.5M19](/packages/sepia-po-parser)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
