Download the PHP package lajax/yii2-language-picker without Composer

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

Yii2 Language Picker

Yii2 Language Picker Widget

Introduction

The widget provides an easy to use language selector which makes it possible to change the language of our website easily. The language change can take place synchronously or asynchronously (through Ajax). The default method is asynchronous (through an Ajax call), however when this method fails for any reason (e.g. JavaScript is blocked on the client side) the new language will actualise synchronously through an automatic page reload.

The language switcher is fully customisable. However, the pre-defined options provide a dropdown list (DropDownList), and a link-based list (ButtonList). Both versions can display the name of the chosen language and the corresponding flag (icon).

Installation

The preferred way to install this extension is through composer.

Config:

Identifier of the language element. e.g.: en, en-US

IMPORTANT

To use the widget, the value of the enablePrettyUrl property in the urlManager configuration must be true, and the value of showScriptName false.

example:

Using of urlManager.

Minimal configuration (icons only)

Minimal configuration (icons and text)

Full configuration (icons only)

Yii2-translate-manager integration

Minimal configuration (icons only)

Minimal configuration (icons and text)

Usage

Displaying language selector

Displaying pre-defined languate picker buttons (icons and text or icons only):

Displaying pre-defined languate picker dropdown list (icons and text or icons only):

Customising the language picker:

Screenshots

Buttons icons and text

language-picker-0 2-screen-1

Buttons icons only

language-picker-0 2-screen-2

Buttons text only

language-picker-0 2-screen-3

DropDown icons and text

language-picker-0 2-screen-4

DropDown icons only

language-picker-0 2-screen-5

DropDown text only

language-picker-0 2-screen-5

Links


All versions of yii2-language-picker with dependencies

PHP Build Version
Package Version
Requires yiisoft/yii2 Version ~2.0.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 lajax/yii2-language-picker contains the following files

Loading the files please wait ....