Framework for localisation of tools.
PHP JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
language
scripts
src
tests
.coveralls.yml
.eslintrc.yml
.gitignore
.mailmap
.travis.yml
AUTHORS.txt
CHANGELOG.md
Gruntfile.js
README.md
ToolStart.php
composer.json
package.json
phpunit.xml.dist

README.md

Packagist Build Status Coverage Status

Intuition

Install

It's recommended you use Composer.

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

Usage

To use it in a tool, read the Usage documentation.

Example:

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

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

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

Getting involved

Testing

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

Prior to running tests, ensure presence of development dependencies:

composer install

Run the tests:

composer test

Misc

To regenerate the AUTHORS.txt:

npm run authors