Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fuadarradhi authored Aug 9, 2020
1 parent 99e6276 commit e0e5863
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,25 @@

SSO Aceh client for PHP languange

Install
```bash
composer require fuadarradhi/ssoacehphp
```

contoh penggunaan:
```php
<?php
//autoloader composer
require_once __DIR__ . '/vendor/autoload.php';

//get token from previous step
$token = $_POST['token'];

// load sso_secure.json and parse token
$sso = new \SSOAceh\PHPClient\SSOClient("/Path/ke/file/sso_secure.json");
$res = $sso->parseToken($token);

// result
echo $res->ID;
echo $res->NIK;
echo $res->NIP;
Expand Down

0 comments on commit e0e5863

Please sign in to comment.