Download the PHP package dlogon/translation-manager without Composer

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

laravel Translation manager

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Manage your translations in your laravel proyect with a web interface.

This package has been inspired by barryvdh/laravel-translation-manager

Installation

You can install the package via composer:

You can run the migrations and optional publish the migrations with:

You can publish the config file with:

Optionally, you can publish the views using

Usage

To access the web manager, access to the url "yourproject"/translations, if you want to change the route prefix of the manager, publish the config file (translation-manager.php) and change "prefix" inside the "route" array, therefore, if you are not using auth, comment the "auth" middleware inside the route array

This is that you will see when enter to the manager

When you add a new Lang, you'll see the lang in the bellow section (ADD NEW KEY) and in the table on the bottom

Then, you should add a group in the Groups tab, groups are intended to create diferent files if you work with the "php array" aproach, or for "enhance" the visual presentation if you use the "json" aproach.

Now, you can add a key, with a value for every lang that you have been created. when you press add, you will see the added key in the bottom table, if you do not see the key, ensure that you select the group where you store the key in the above dropdown.

if you want to change any translation, just click the translation and you will see an input to put the new translation, if you click the Ok button, you will see a notifications saying that the translation updated successfully

Model translations

Maybe you noticed the Model translations tab, here, you can generate a group for every model in your app, and this will generate a key for every column in you model.

For example, if we have a Post model, and we already run the migration with some columns.

If you want to avoid some columns, you can add it into the config file, there are a default ignored columns of the User model, and there are a default columns ignored from all models

Generating the translation files

Once you are ready and you have created your translations, is time to create the translations files, above all you will see the big orange button Generate translations, below you will see a radio where you can select the aproach.

If you select the php aproach, your translation files will have the structure

rootapp/<your lang folder>/<lang1>/
                                group1.php
                                group2.php
rootapp/<your lang folder>/<lang2>/
                                group1.php
                                group2.php

If you select the JSON aproach, you will see a property in your generated json, this property has the structure

"//GROUP<group-name>" = "///////////////GROUP-<group-name>/////////////////////"

for example:

en.json

es.json

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.

TODO

- Read and store lang files in database
- Filter keys
- Read lang and add to database on install package

All versions of translation-manager with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
dlogon/tailwind-alerts Version ^0.2
illuminate/contracts Version ^9.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 dlogon/translation-manager contains the following files

Loading the files please wait ....