PHP code example of chaton / chaton-sdk

1. Go to this page and download the library: Download chaton/chaton-sdk 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/ */

    

chaton / chaton-sdk example snippets


use Chaton\SDK\Facades\License;

// Check if license is valid
if (License::isValid()) {
    // License is valid
}

// Check SAAS features
if (License::isSaasEnabled()) {
    // SAAS features available
}

$info = License::getLicenseInfo();
// Returns: purchase_code, domain, license_type, features, etc.
bash
php artisan vendor:publish --tag=chaton-config