Download the PHP package kumwe/localization without Composer

On this page you can find all versions of the php package kumwe/localization. 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 localization

Kumwe Localization

Portable locale negotiation, layered message catalogues and ICU formatting, extracted from Kumwe App. Canonical namespace: Kumwe\Localization\*. Requires PHP 8.5 and ext-intl. Apache-2.0.

The package owns translation behavior and contracts; the host supplies catalogues, override storage, trusted scope and its default locale. Authorization, settings mutation, persistence and delivery remain in the host. No Kumwe dependency or historical namespace alias is used.

Install the approved released version with Composer. During the pre-1.0 programme, consumers pin the exact independently verified version rather than a floating branch or range. No package has been published by this implementation branch.

Run php examples/translate.php after composer install for a complete catalogue/override/default-provider example. It prints Hello, Kumwe!. examples/container.php proves the same behavior with an explicitly configured Laminas ServiceManager. Full public member contracts are in docs/public-api.md.

Register Kumwe\Localization\ConfigProvider explicitly in the host ConfigAggregator provider list. It registers only CatalogueTranslator and LocaleNegotiator, both non-shared, plus the canonical Translator interface binding. Supply SupportedLocales, one operation's ActiveLocale, MessageCatalogueRepository, MessageOverrideRepository, MessagePatternFormatter and DefaultLocaleProvider explicitly. Values and stateless ICU formatting require no container factory. kumwe.localization.maximum_accept_language_bytes defaults to 512 and must be a positive integer. See docs/integration.md for composition and lifetime rules.

Identifiers are stable dotted names, not prose. Resolution tries the requested locale and its fallbacks, then the source locale; within each locale organization overrides site, extension and core. A missing identifier returns itself. Invalid identifiers and malformed ICU patterns throw explicit exceptions. Catalogues preserve insertion order; host compilation decides sorted byte order. ICU data/version and timezone affect locale-sensitive formatted output and must be pinned by the deployment when byte parity is required. No binary floating-point financial algorithm or transaction manager is introduced.

ActiveLocale is mutable operation context. CatalogueTranslator memoizes only within its generation. Open/close sequential operations with begin() and end() in finally; allocate separate context and translator instances for overlapping requests/fibers. Host adapters supply bounded catalogue maps and trusted unambiguous scope identifiers; these DTOs are not authorization or content-validation boundaries.

Run composer check for lint, member documentation, architecture, manifests, static analysis, PSR-12, unit tests, security audit and a fresh no-dev authoritative-classmap consumer installed from the built ZIP. PHP 8.5 is the supported CI lane. ext-intl and psr/container are the only non-PHP runtime dependencies; the latter is used solely by factories. ext-zip and Laminas ServiceManager are verification dependencies.

MIGRATION-HANDOFF.md inventories exact source mappings and the separate App adoption. docs/releasing.md specifies immutable release-on-record and verification gates; docs/security.md records limits, deployment assumptions and private reporting.


All versions of localization with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
ext-intl Version *
psr/container Version ^2.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 kumwe/localization contains the following files

Loading the files please wait ...