1. Go to this page and download the library: Download rdcstarr/laravel-easyapi 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/ */
rdcstarr / laravel-easyapi example snippets
use Rdcstarr\EasyApi\Facades\EasyApi;
// Generate a new API key (returns the Api model)
$api = EasyApi::createKey();
$fullKey = $api->key; // show and store this securely
// Validate a key (returns bool)
$isValid = EasyApi::validateKey($fullKey);
// Delete a key
EasyApi::deleteKey($fullKey);