Download the PHP package joedixon-custom/translation-8-0-php without Composer

On this page you can find all versions of the php package joedixon-custom/translation-8-0-php. 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 translation-8-0-php

![Laravel Translation](logo.png) Translation management for your Laravel application. ![Laravel Translation UI](translation.png) ![Travis (.org) branch](https://img.shields.io/travis/joedixon/laravel-translation/master.svg?style=for-the-badge) ![Scrutinizer](https://img.shields.io/scrutinizer/g/joedixon/laravel-translation.svg?style=for-the-badge) ![Scrutinizer Coverage](https://img.shields.io/scrutinizer/coverage/g/joedixon/laravel-translation.svg?style=for-the-badge) ![GitHub](https://img.shields.io/github/license/joedixon/laravel-translation.svg?style=for-the-badge)

About Laravel Translation

This package is for php 8.0 only -------------------

Laravel Translation is a package for Laravel 5 which allows you full control over your translations when using Laravel's localization functionality.

The package allows you to manage your translations using either the native file based translations, but also provides a database driver which is useful in multi-server setups.

It exposes a user interface allowing you to update existing and add new translations to your application.

Below are a full list of features:

Installation

Install the package via Composer

composer require joedixon/laravel-translation

Publish configuration and assets

php artisan vendor:publish --provider="JoeDixon\Translation\TranslationServiceProvider"

The service provider is loaded automatically using package discovery.

Usage

Configuration

The package ships with a configuration file called translation.php which is published to the config directory during installation. Below is an outline of the settings.

Choose either file or database. File translations utilise Laravel's native file based translations and includes support for both array based and json based language files.

Apply middleware to the routes which ship with the package. For example, you may which to use the auth middleware to ensure package user interface is only accessible to logged in users.

Choose which of Laravel's translation methods to use when searching for missing translation keys.

Choose which paths to use when searching for missing translations. Narrowing the search to specific directories will result in a performance increase when scanning for missing translations.

Choose the root URL where the package user interface can be accessed. All routes will be prefixed by this value.

e.g. setting this value to languages will result in URLs such as translations/{language}/translations

Choose the name of the languages table when using the database driver.

Choose the name of the translations table when using the database driver.

Drivers

File

Utitlises Laravel's native php array and JSON based language files and exposes a user interface to manage the enclosed translations. Add and update languages and translations using either the user interface or the built-in Artisan commands.

Database

The database driver takes all of the functionality of Laravel's file based language files, but moves the storage to the database, utilising the connection configured for your Laravel application.

It also replaces the translation loader in the container so all of Laravel's translation retrieval methods (__(), trans(), @lang(), etc) will load the relevant strings from the database rather than the files without the need to change any code in your application. It's a like for like swap.

To utilise the database driver, make sure to update the database table names in the configuration file and run the migrations.

User interface

Navigate to http://your-project.test/languages (update languages to match the translation.ui_url configuration setting) and use the interface to manage your translations.

First, click on the language you wish to edit. On the subsequent page, find the translation you want to edit and click on the pencil icon or on the text and make your edits. As soon as you remove focus from the input, your translation will be saved, indicated by the green check icon.

Artisan Commands

The package ships with a series of Artisan commands which assist with translation management.

Add a new language to the application.

Add a new language key for the application.

List all of the available languages in the application.

List all of the translation keys in the app which don't have a corresponding translation.

Synchronise translations between drivers. This is useful if you have an exisitng application using the native file based language files and wish to move to the database driver. Running this command will take all of the translations from the language files and insert them in to the database.

This command will scan your project (using the paths supplied in the configuration file) and create all of the missing translation keys. This can be run for all languages or a single language.


All versions of translation-8-0-php with dependencies

PHP Build Version
Package Version
No informations.
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 joedixon-custom/translation-8-0-php contains the following files

Loading the files please wait ....