Download the PHP package mmelcor/yii2-babelfish without Composer

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

Yii2 Babel Fish

The Yii2 Babelfish symbiote is a portal to edit and update translations.

Key Features

Installation

The preferred way to install this extension is through composer.

Either run

or add

to the require section of your composer.json file.

Configuration

Once the extension is installed :

Dependency Configuration

Follow configuration for oorrwullie\yii2-babelfishfood. Once this has been completed continue configuring the remaining dependencies:

Filesystem Configuration Configure your file system component. This package comes with creocoder\flysystem\AwsS3FileSystem by default as that is what we use. You may use any of those supported by trntv/yii2-file-kit. Place the following in the common/config/main.php file, or similar depending on your file system.

for additional information or options checkout creocoder\Flysystem. Feel free to use any of the other file system options they support.

Configure babelFileStorage place the following also in common/config/main.php. The file storage step is required to follow the file system set up as it uses the file system as the route for storing the uploaded files. File storage is required to support the uploading of users' avatars, and potential future features.

If you have trouble see trntv/yii2-file-kit documentation.

Module Configuration

  1. Create a new database to house babelfish specific RBAC and Users.

  2. Add babelfishDb to common/config/main-local.php. This component must be named babelfishDb as that is the component the module will be looking for.

  3. Config Init module by setting up the Module and bootstrapping it in console/config/main.php. This module will be used to install database migrations and setup the initial super user for the module. Example setup:

  4. Config babelfish module in frontend/config/main.php by placing the following in the modules section:

Run console commands

Once the configuration has been completed next run the following console commands:

  1. ./yii babelfish-init This creates the RBAC tables and users table in the babelfish users.

  2. ./yii babelfish-init/load-rbac This will load the RBAC roles and rules into the database.

  3. ./yii babelfish-init/signup This will create the initial super user for administration.

Add Translation Hooks

Add the following babelfish necessary translation hooks to the common/config/main.php i18n section:

Implementation

Once this has all been completed you should be able to navigate to yourdomain.com/babel. If everything has been installed and configured correctly you should see the following screen:


All versions of yii2-babelfish with dependencies

PHP Build Version
Package Version
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 mmelcor/yii2-babelfish contains the following files

Loading the files please wait ....