Download the PHP package clash82/ezplatform-website-switcher without Composer

On this page you can find all versions of the php package clash82/ezplatform-website-switcher. 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 ezplatform-website-switcher

eZ Platform Website Switcher

SensioLabsInsight

With this bundle, you can suggest to the user to visit your website in another language. This bundle uses the main language of the browser in order to redirect to the correct site.

screenshot

Requirements

Installation

This package is available via Composer, so the instructions below are similar to how you install any other open source Symfony Bundle.

Run the following command in a terminal, from your Symfony installation root (pick most recent release):

Enable the bundle in app/AppKernel.php file:

Add external assets to your bundle:

If you are installing bundle via composer require you must also copy assets to your project web directory. You can do this by calling Symfony built-in command from the project root directory:

Configuration

This is an example of required settings (config.yml):

Supported languages are detected from your eZ Publish / eZ Platform installation.

Usage

Insert the following {{ show_website_switcher_banner() }} helper somewhere in your header template close after body opening tag.

The following optional parameters can be set as an argument in an array format (overrides default settings and parameters from config.yml file):

Parameter Default value Description
cookieName websiteSwitcherStatus Sets your own status cookie name
days 365 Says how many days website switcher banner should be hidden when user disables the banner

Example of usage in standard eZ Publish / eZ Platform application:

or


All versions of ezplatform-website-switcher with dependencies

PHP Build Version
Package Version
Requires robloach/component-installer Version *
components/flag-icon-css Version ^1.4
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 clash82/ezplatform-website-switcher contains the following files

Loading the files please wait ....