Package Data | |
---|---|
Maintainer Username: | shaggyz |
Maintainer Contact: | n@xinax.net (Nicolás Daniel Palumbo) |
Package Create Date: | 2014-06-30 |
Package Last Update: | 2014-07-01 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 03:18:29 |
Package Statistics | |
---|---|
Total Downloads: | 14 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Laravel package for Latch SDK.
More info about Latch: https://latch.elevenpaths.com/ Official Latch php SDK: https://github.com/ElevenPaths/latch-sdk-php
This package requires Laravel 4.1.*+
"xinax/laravel-latch": "dev-master"
composer update
'Xinax\LaravelLatch\LaravelLatchServiceProvider',
php artisan config:publish xinax/laravel-latch
app/config/packages/xinax/laravel-latch/config.php
All original method names were kept. Refer to original readme for updated documentation.
$accountID = LaravelLatch::pair($pairCode);
try{
LaravelLatch::status($accountID);
} catch (Xinax\LaravelLatch\Exceptions\ClosedLatchException $e){
// ... latch protection logic ...
} catch (Xinax\LaravelLatch\Exceptions\LatchErrorException $e){
// ... crisis logic (depends of your security policy) ...
}
LaravelLatch::unpair($accountID);