Download the PHP
package phpaml/i18n without Composer
On this page you can find all versions of the php package
phpaml/i18n. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor phpaml Package i18n Short Description JSON-first internationalization for PHPAML and AML View. License
MIT
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.
Keep translations in small, nested JSON files and use predictable dot keys
from PHP, AML View, or generated applications. PHPAML configures the package
for you, while standalone PHP projects can initialize it directly.
nested JSON catalogs organized by locale and feature;
variable interpolation and one / other plural forms;
explicit fallback locale with diagnosable missing keys;
locale selection from routes, cookies, or Accept-Language;
CLI commands to add, validate, inspect, and select locales;
no external service or runtime dependency.
Install
Or install the package directly:
Five-minute example
Translations live under src/locales/{locale}. Every nested JSON path becomes
a dot key:
aml install i18n configures the translator automatically in a PHPAML
application. Files can be nested freely below each locale. Missing keys fall
back to APP_FALLBACK_LOCALE, then return the key itself so the interface
remains diagnosable.
Plural forms use one and other keys. LocaleResolver can select a supported
locale from a route, cookie or Accept-Language header while always returning a
declared locale.
Platform relationship
Tests
License
PHPAML i18n is open-source software licensed under the MIT License.
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 phpaml/i18n contains the following files
Loading the files please wait ...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.