It's recommended you use Composer.
- Run
composer require Krinkle/intuition
. - Include
vendor/autoload.php
in your program.
To use it in a tool, read the Usage documentation.
Example:
require_once __DIR__ . '/vendor/autoload.php';
$I18N = new Intuition( 'mytool' );
$I18N->registerDomain( 'mytool', __DIR__ . '/messages' );
echo $I18N->msg( 'example' );
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
To regenerate the AUTHORS.txt
:
npm run authors