Download the PHP package parfaitementweb/statamic-locale-suggester without Composer

On this page you can find all versions of the php package parfaitementweb/statamic-locale-suggester. 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 statamic-locale-suggester

Locale Suggester

Statamic 3.0+

Suggest your visitors to read the content in their preferred language. 🌍

Features

How does it work?

  1. We detect the preferred language of your visitors based on their browser settings.
  2. If their preferred language matches a locale in your multi-site configuration, the alert box will be shown.
  3. If the visitor dismisses the alert box, we set a cookie and he won't be bothered again.

Getting Started

This addon required PHP PECL intl >= 1.0.0 to be installed on your server.

We have made things easy for you to start. Here are the three steps your need to follow:

  1. Install the addon
    Simply run composer require parfaitementweb/statamic-locale-suggester
    You also can follow the official Statamic help guide

  2. Add these two tags in your layout.

This insert the alert in your layout. By default, its position is fixed so placing this tag at the bottom of your <body> is fine.

Add the scripts in your layout. This handles the dismiss button.

  1. Enjoy.

What does the addon look like?

Statamic Locale Suggester Preview in EN

Statamic Locale Suggester Preview in FR

Statamic Locale Suggester Dashboard

Customize the alert, the script and the translations

You can execute the following commands so the views and translations files will be copied to your vendor resources folder.

Don't be shocked when you'll discover we've used plain and inlined CSS rules in our alert template. This is done to ensure maximum compability without the need to recompile and repurge your stylesheet before being able to use this addon. You can of course customize everything to your needs.

Changelog

V1.0.1
SameSite Cookie value has been set to Lax.
Improved default UI for the alert

V1.0.1
Better to not show the alert for unpublished versions isn't?

V1.0.0
🚀 Would you like to read the initial commit in another language?


All versions of statamic-locale-suggester with dependencies

PHP Build Version
Package Version
No informations.
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 parfaitementweb/statamic-locale-suggester contains the following files

Loading the files please wait ....