Download the PHP package survos/lingua-bundle without Composer

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

SurvosLinguaBundle

A Symfony bundle for lingua functionality.

Features

Installation

Install the bundle using Composer:

If you're using Symfony Flex, the bundle will be automatically registered. Otherwise, add it to your config/bundles.php:

Configuration

Configure the bundle in config/packages/lingua.yaml:

Or set environment variables:

Usage

This bundle provides various components depending on your configuration. Check the generated service classes and controllers for specific usage examples.

Being told when a string is translated

Translation on the lingua server is asynchronous, and the historical way to collect results was to poll with lingua:pull — a job that usually finds nothing, and that nobody schedules until a locale turns up empty in production.

Set a callback URL and lingua announces them instead:

lingua:push then sends each string's Str.code as a ref, the server records a subscription per (string × target locale), and POSTs a signed translation.completed carrying up to 500 finished translations inline. TranslationUpdateApplier writes them to StrTranslation and dispatches TranslationUpdatedEvent for app-specific work (reindexing, cache busting).

In the app:

Leave LINGUA_CALLBACK_URL unset and nothing changes — no subscriptions are created and lingua:pull remains the way to collect results.

Full contract: kit-bundle/docs/webhooks.md.

Replaced LinguaWebhookController, which checked an X-Api-Key by hand and whose route was never registered. See survos-sites/mediary#8.

Testing

Run the test suite:

License

This bundle is released under the MIT license. See the LICENSE file for details.

Shared admin navigation

When menu-bundle is installed, Lingua contributes its available Overview and Translation sandbox routes to ADMIN_NAVBAR_MENU. Tabler and EZ render the same menu event; no application-specific listener is required. CLI/API-only consumers do not need menu-bundle. Menu visibility is controlled by the layout; it does not replace route authorization.


All versions of lingua-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
symfony/config Version ^7.4||^8.1
symfony/dependency-injection Version ^7.4||^8.1
symfony/http-kernel Version ^7.4||^8.1
symfony/framework-bundle Version ^7.4||^8.1
symfony/routing Version ^7.4||^8.1
symfony/console Version ^7.4||^8.1
symfony/http-client Version ^7.4||^8.1
survos/lingua-contracts Version ^2.5
survos/lingua-core Version ^2.5
survos/babel-bundle Version ^2.10
survos/kit-bundle Version ^2.6
symfony/remote-event Version ^7.4||^8.1
symfony/webhook Version ^7.4||^8.1
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 survos/lingua-bundle contains the following files

Loading the files please wait ...