2017 © Pedro PelĂĄez
 

library laravel-latch

Laravel wrapper for Latch SDK (Second security layer).

image

xinax/laravel-latch

Laravel wrapper for Latch SDK (Second security layer).

  • Tuesday, July 1, 2014
  • by shaggyz
  • Repository
  • 1 Watchers
  • 1 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel Latch

Laravel package for Latch SDK., (*1)

More info about Latch: https://latch.elevenpaths.com/ Official Latch php SDK: https://github.com/ElevenPaths/latch-sdk-php, (*2)

Install

This package requires Laravel 4.1.*+, (*3)

  • Add repository to composer.json:
    "xinax/laravel-latch": "dev-master"
  • Update composer:
    composer update
  • Register the service provider in app.php
    'Xinax\LaravelLatch\LaravelLatchServiceProvider',

Configuration

  • Publish configuration file:
    php artisan config:publish xinax/laravel-latch
  • Set application ID and secret in:
    app/config/packages/xinax/laravel-latch/config.php

Usage

All original method names were kept. Refer to original readme for updated documentation., (*4)

Pair register

    $accountID = LaravelLatch::pair($pairCode);

Latch status check

    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) ...
    }

Unpair

    LaravelLatch::unpair($accountID);

The Versions

01/07 2014

dev-master

9999999-dev https://github.com/xinax/laravel-latch

Laravel wrapper for Latch SDK (Second security layer).

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel authentication security digital latch laravel-latch