PHPackages                             clash82/ezplatform-website-switcher - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. clash82/ezplatform-website-switcher

ActiveLibrary[Localization &amp; i18n](/categories/localization)

clash82/ezplatform-website-switcher
===================================

Adds option to 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.

v1.0.0(9y ago)023MITPHP

Since Jan 2Pushed 9y ago1 watchersCompare

[ Source](https://github.com/clash82/ezplatform-website-switcher)[ Packagist](https://packagist.org/packages/clash82/ezplatform-website-switcher)[ Docs](https://github.com/clash82/ezplatform-website-switcher)[ RSS](/packages/clash82-ezplatform-website-switcher/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

eZ Platform Website Switcher
============================

[](#ez-platform-website-switcher)

[![SensioLabsInsight](https://camo.githubusercontent.com/b6aa478eec2ccd981c71db0ca38ca9800d1b7e03a4fc066327a906a20f52a794/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f39353830626137352d383863632d343934392d613738612d6534343232353636636566612f6269672e706e67)](https://insight.sensiolabs.com/projects/9580ba75-88cc-4949-a78a-e4422566cefa)

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](https://cloud.githubusercontent.com/assets/3033038/14352389/91adbf3e-fcd4-11e5-9a9c-90b1554228b5.png)](https://cloud.githubusercontent.com/assets/3033038/14352389/91adbf3e-fcd4-11e5-9a9c-90b1554228b5.png)

Requirements
------------

[](#requirements)

- Symfony v2.6 or later
- eZ Publish 5.4 / eZ Platform 1.x or later

Installation
------------

[](#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):

```
composer require clash82/ezplatform-website-switcher
```

Enable the bundle in `app/AppKernel.php` file:

```
$bundles = array(
    // existing bundles
    new Clash82\EzPlatformWebsiteSwitcherBundle\Clash82EzPlatformWebsiteSwitcherBundle()
);
```

Add external assets to your bundle:

- CSS:

```
bundles/clash82ezplatformwebsiteswitcher/css/website_switcher.css
components/flag-icon-css/css/flag-icon.min.css

```

- JS:

```
bundles/clash82ezplatformwebsiteswitcher/js/website_switcher.js

```

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:

```
php app/console assets:install --symlink
```

Configuration
-------------

[](#configuration)

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

```
ez_website_switcher:
    # name to be used to store banner status
    cookie_name: websiteSwitcherStatus

    # how many days banner should be hidden when user disables the banner?
    days: 365
```

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

Usage
-----

[](#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):

ParameterDefault valueDescriptioncookieNamewebsiteSwitcherStatusSets your own status cookie namedays365Says how many days website switcher banner should be hidden when user disables the bannerExample of usage in standard eZ Publish / eZ Platform application:

```
{{ show_website_switcher_banner() }}
```

or

```
{{ show_website_switcher_banner({
   cookieName: 'myCookie',
   days: 7
}) }}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3414d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c42af8d5ee6be41034cf2b6a588200a906f09586058dbfb7009dbe327bf2dc5f?d=identicon)[clash82](/maintainers/clash82)

---

Top Contributors

[![clash82](https://avatars.githubusercontent.com/u/3033038?v=4)](https://github.com/clash82 "clash82 (3 commits)")

---

Tags

bundleezplatformezpublishlanguagessymfonytranslationslanguagesezpublishlocalisationezplatformsiteaccessezsystemsclash82

### Embed Badge

![Health badge](/badges/clash82-ezplatform-website-switcher/health.svg)

```
[![Health](https://phpackages.com/badges/clash82-ezplatform-website-switcher/health.svg)](https://phpackages.com/packages/clash82-ezplatform-website-switcher)
```

###  Alternatives

[laravel-lang/lang

List of 126 languages for Laravel Framework, Laravel Jetstream, Laravel Fortify, Laravel Breeze, Laravel Cashier, Laravel Nova, Laravel Spark and Laravel UI

7.8k9.5M39](/packages/laravel-lang-lang)[barryvdh/laravel-translation-manager

Manage Laravel Translations

1.7k3.6M17](/packages/barryvdh-laravel-translation-manager)[gettext/languages

gettext languages with plural rules

7530.3M10](/packages/gettext-languages)[arcanedev/laravel-lang

Translations manager and checker for Laravel based on 'Laravel-Lang/lang' package.

7271.4k](/packages/arcanedev-laravel-lang)[nnjeim/world

Laravel countries, states, cities, currencies, languages and IP geolocation

970361.2k3](/packages/nnjeim-world)[kkomelin/laravel-translatable-string-exporter

Translatable String Exporter for Laravel

3291.4M10](/packages/kkomelin-laravel-translatable-string-exporter)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
