Download the PHP package atpro/translator without Composer

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

atpro-translator laravel Package

Build Status Latest Stable Version License

Introduction

Atpro-translator is a package that allows you to easily manage the internationalization in your applications.

Installation

To get started with Atpro-translator, use Composer to add the package to your project's dependencies:

Configuration

After installing the Atpro-translator library, register the \Atpro\Translator\AtproServiceProvider::class in your config/app.php configuration file:

Also, register the middleware in web middleware groups by simply adding the middleware class :

into the $middlewareGroups of your app/Http/Kernel.php file.

And then run :

publish AtproServiceProvider.

Usage

To translate your lang files into other languages:

Run the command in terminal

Example:

  1. php artisan atpro:translate and click enter
  2. --> Your started language ? en
  3. --> Your translated list language seperated with commas (,) example: fr,es ... ? fr,it,es
  4. Click enter and wait for translated files

It will generate translated files in respective folder fr,it,es

OPTIONAL OPTIONS:

Options Description Examples
--e Generate files for all languages without any php artisan atpro:translate --e='user.php,test.php'
--f Generate files for specific path php artisan atpro:translate --f='user.php,test.php'

B. To generate views for translation:

Run the command in terminal

Example:

  1. php artisan atpro:generate-view-translate and click enter
  2. --> Yours languages seperated with commas (,) example: fr,es ... ? fr,it,es
  3. Click enter and wait for generate views translate

It will generate a middleware, in controller, a routes file and a component containing the different options according to the chosen languages

You will also have a new component <x-atpro::language> </x-atpro::language>. You can use it in views.

Note: Make sure that the started language folder exists in your language folder and contains files you want to translate.


All versions of translator with dependencies

PHP Build Version
Package Version
Requires stichoza/google-translate-php Version ^4.1.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 atpro/translator contains the following files

Loading the files please wait ....