Download the PHP package audero/audero-shared-gettext without Composer

On this page you can find all versions of the php package audero/audero-shared-gettext. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package audero-shared-gettext

Audero Shared Gettext

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

This library requires PHP version 5.3 or higher.

Download

Download via Composer

You can obtain "Audero Shared Gettext" via Composer 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

If you haven't or don't want to use Composer, you can download the library from its repository via Git running the following command:

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

Usage

Audero Shared Gettext is very easy to use. However, since the library uses namespaces and follows the PSR 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

If you installed the library using Composer, 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)

Installed via Git

If you obtained the code via Git, 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

License

Audero Shared Gettext is licensed under the CC BY-NC 4.0 ("Creative Commons Attribution NonCommercial 4.0")

Authors

Aurelio De Rosa (Twitter: @AurelioDeRosa)


All versions of audero-shared-gettext with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package audero/audero-shared-gettext contains the following files

Loading the files please wait ....