PHP code example of integrationos / authkit-php
1. Go to this page and download the library: Download integrationos/authkit-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
integrationos / authkit-php example snippets
// file endpoint.php
ken\AuthKitToken;
$authKitToken = new AuthKitToken("sk_live_12345");
$token = $authKitToken->create();
echo json_encode($token);
use Illuminate\Support\Facades\Route;
use IntegrationOS\AuthKitToken\AuthKitToken;
Route::get('/authkit-token', function () {
$authKitToken = new AuthKitToken("sk_live_12345");
$token = $authKitToken->create();
return $token;
});
bash
composer