Download the PHP package misaf/vendra-language without Composer

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

Vendra Language

Tenant-aware language catalogs and database-backed translation lines for Vendra applications.

Features

Requirements

Installation

The service provider and Filament plugin are discovered automatically.

Locale catalog

Every locale exposed by Symfony Intl may be installed for a tenant from the searchable Languages resource. The preferred locale subset for host integrations may still be configured in config/vendra-language.php:

Values use canonical web/BCP-47 tags and must exist in the ICU locale catalog. This preferred subset does not limit which locales may be installed. Tenant language records store the locale, enabled status, default flag, and display position; localized names are derived from ICU.

Usage

Enable a language for the current tenant:

The first enabled language becomes the default automatically. Setting another language as default clears the previous default for the current tenant, and deleting the default promotes the first remaining language in display order.

Create a translation line and read it through Laravel's translator:

To override a package translation, store the package translation namespace separately from the translation file group:

Leave namespace empty for application translations. In Laravel's namespace::group.key syntax, the package name is the namespace and the translation file name is the group.

Database values override only the locale for which a non-blank value is stored. Missing and blank values leave that locale's file translation intact, allowing Laravel's normal fallback behavior to run afterward.

Applications that replace translation-loader.model may implement Misaf\VendraLanguage\Contracts\NamespacedLanguageLine to receive package namespaces. Models without the contract continue to support application translations, while explicit custom loaders and translation managers remain authoritative.

Load the current tenant's enabled languages in display order:

Optional localization bridge

When misaf/vendra-localization is installed, this package supplies its supported locale catalog and appends the tenant-default resolver at the end of the resolver chain. Explicit user, route, query, and header preferences therefore retain priority.

Filament

The configured panels expose Languages and Language Lines within the Localization cluster. Language lines can override keys discovered in application and Vendra package translation files. Their form displays all enabled tenant locales together and retains stored values for locales that are later disabled. Installed languages can be temporarily disabled from the Languages table without deleting them. The Languages table reports override coverage per locale, while the Language Lines table reports enabled-locale completion and identifies missing locales.

The global language switcher uses the current tenant's enabled languages in display order and falls back to config('app.fallback_locale') when none are enabled.

Testing

License

MIT. See LICENSE.


All versions of vendra-language with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
bezhansalleh/filament-language-switch Version ^5.0
misaf/vendra-support Version self.version
spatie/eloquent-sortable Version ^5.0.1
spatie/laravel-package-tools Version ^1.93.1
spatie/laravel-translation-loader Version ^2.8.3
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 misaf/vendra-language contains the following files

Loading the files please wait ...