2017 © Pedro Peláez
 

library intuition

Framework for localisation in PHP.

image

krinkle/intuition

Framework for localisation in PHP.

  • Friday, July 20, 2018
  • by Krinkle
  • Repository
  • 13 Watchers
  • 20 Stars
  • 7,149 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 22 Forks
  • 7 Open issues
  • 16 Versions
  • 5 % Grown

The README.md

Packagist, (*1)

Intuition

Intuition is a localisation library for PHP applications. Intuition is designed for use by web applications on Wikimedia Toolforge, but is implemented as a standalone library that is available for any application via its Composer package., (*2)

It was originally developed in 2011 for use on Wikimedia Toolserver (since then replaced by Toolforge)., (*3)

Intuition (INTUI-tion) originally stood for "Internationalization for Toolserver's User Interface"., (*4)

Intuition supports the Banana Milkshake message file format (developed for use in MediaWiki). We recommended translatewiki.net for managing translations, which allows contributors to translate and review message via a user-friendly interface, which are then periodically automatically exported in the Banana JSON format to your Git repository., (*5)

Install

It's recommended you use Composer., (*6)

  • Run composer require krinkle/intuition.
  • Include vendor/autoload.php in your program.

Usage

To use it in a tool, read the Usage documentation., (*7)

Example:, (*8)

require_once __DIR__ . '/vendor/autoload.php';

$int = new Intuition( 'mytool' );
$int->registerDomain( 'mytool', __DIR__ . '/i18n' );

echo $int->msg( 'example' );

Getting involved

Report issues by creating a Phabricator task., (*9)

Code coverage can be found at https://doc.wikimedia.org/cover/labs-tools-intuition/., (*10)

Testing

Use Composer for managing dependencies (such as PHPUnit). Install Composer via your preferred package manager, or from source. Some tests also require Node.js., (*11)

Prior to running tests, ensure presence of development dependencies:, (*12)

composer install

Run the tests:, (*13)

composer test

See also

The Versions

20/07 2018

dev-master

9999999-dev

Framework for localisation in PHP.

  Sources   Download

CC-BY-3.0

The Requires

  • php >=5.5

 

The Development Requires

10/04 2018
20/06 2017
21/04 2017
16/03 2017

v0.5.4

0.5.4.0

Framework for localisation in PHP.

  Sources   Download

CC-BY-3.0

The Requires

  • php >=5.5

 

The Development Requires

13/03 2017

v0.5.3

0.5.3.0

Framework for localisation in PHP.

  Sources   Download

CC-BY-3.0

The Requires

  • php >=5.5

 

The Development Requires

11/03 2017

v0.5.2

0.5.2.0

Framework for localisation in PHP.

  Sources   Download

CC-BY-3.0

The Requires

  • php >=5.5

 

The Development Requires

11/03 2017

v0.5.1

0.5.1.0

Framework for localisation in PHP.

  Sources   Download

CC-BY-3.0

The Requires

  • php >=5.5

 

The Development Requires

02/03 2017

v0.5.0

0.5.0.0

Framework for localisation in PHP.

  Sources   Download

CC-BY-3.0

The Requires

  • php >=5.5

 

The Development Requires

23/12 2016
04/07 2016
16/03 2016
08/09 2015