PHP code example of argist / laravel-invoice-webhook
1. Go to this page and download the library: Download argist/laravel-invoice-webhook 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/ */
use Argist\InvoiceWebhook\Services\JwtTokenService;
$tokenService = new JwtTokenService();
// Token al (cache'den ya da API'den)
$token = $tokenService->getToken();
// Cache'i temizle
$tokenService->clearCache();