🔐
DevByBit
  • 🔐Blackout License Software
    • 👍Installation
      • 💽Dependencies
      • 📮Check Versions
      • 🦰Setting up the bot
      • 💸Setting up the tebex api
      • 🎹Setting up the tinymce
    • ☑️Required Dependencies
    • 💉API Integration
      • Java Integration
      • Javascript Integration
      • PHP Integration
      • Python Integration
      • Lua Integration
      • API Actions Create
        • PHP Integration
        • Java Integration
        • Lua Integration
        • Python Integration
    • 🪝Request
      • 🚩Low
      • 🏳️Normal
      • 🏴High
    • 🔱Permissions
      • 📑List
    • 🪧Version History
    • 🔗Links
      • Demo
      • Information
  • 📚Mongo Manager
  • 🏪Businesses Software's
    • 🏬Mia Account
      • 🔗Links
        • Demo
        • Information
  • 🔑License Software's
    • 🆓Soroly
      • 👍Installation
        • 💽Dependencies
        • 📮Check Versions
        • 🦰Setting up the bot
      • ☑️Dependencies
      • 🔱Permissions
      • 🪧Version History
        • 1.0-beta
      • 🔗Links
        • Demo
        • Information
    • 🔏Solary
      • 👍Installation
        • 💽Dependencies
        • 📮Check Versions
        • 🦰Setting up the bot
        • 🦰Setting up the google auth
        • 🦰Setting up the builtbybit
        • 🦰Setting up the tebex
        • 🦰Setting up the polymart
      • ☑️Dependencies
      • 💉API Integration
        • Front-end
          • Javascript/Typescript
        • Back-end
          • PHP
      • 🔱Permissions
      • 🪧Version History
        • 1.0-beta
      • 🔗Links
        • Demo
        • Information
    • 🔏PrimeLicense
      • 👍Installation
        • 💽Dependencies
        • 📮Check Versions
        • 🦰Setting up the bot
        • 🦰Setting up the google auth
        • 🦰Setting up the builtbybit
        • 🦰Setting up the tebex
        • 🦰Setting up the polymart
      • ☑️Dependencies
      • 💉API Integration
        • Front-end
          • Javascript/Typescript
        • Back-end
          • PHP
      • 🔱Permissions
      • 🪧Version History
        • 1.0-beta
      • 🔗Links
        • Demo
        • Information
    • Ⓜ️Mito
      • 👍Installation
        • 💽Dependencies
        • 📮Check Versions
        • 🦰Setting up the bot
      • ☑️Dependencies
      • 🔱Permissions
        • 🌏Users
        • 📐Moderator
        • 🔱Admin
        • 👑Owner
      • 🪧Version History
        • 1.0-beta
      • 🔗Links
        • Demo
        • Information
  • 🧊Minecraft Web
    • 🖥️Versal
    • 🚫Atomic
      • 🪧Version History
        • 1.0-beta
  • 👮Support
    • Discord Support
Powered by GitBook
On this page
  • Dependencies
  • Example PHP
  1. Blackout License Software
  2. API Integration

PHP Integration

Please note these are examples. It is recommended that you make one that is more complex and adjustable to your needs.

Dependencies

Make sure cURL is installed on your server - The cURL library may not be installed on your server by default. You can check if it's installed by running the command curl --version in your terminal. If it's not installed, you can install it using your server's package manager.

Example PHP

Copy

<?php
function checkLicense($key, $software, $version) {
    $secret = 'PUT_YOUR_SECRET_KEY';
    $type = 'license';
    $url = "https://<YOUR_DOMAIN>/api.php?secret={$secret}&type={$type}&key={$key}&product={$software}&version={$version}";
    
    $response = file_get_contents($url);
    
    if ($response === false) {
        echo "Error...";
        exit;
    }
    
    $data = json_decode($response, true);
    
    if ($data['valid']) {
        echo "Success!";
    } else {
        echo "Incorrect.";
    }
}
?>

You can then call the checkLicense function with the appropiate parameters to check the license status of a product:

Copy

$result = checkLicense('LICENSE_KEY', 'PRODUCT_NAME', 'VERSION_NUMBER');

if ($result !== false) {
    // Handle successful license check
} else {
    // Handle failed license check
}
PreviousJavascript IntegrationNextPython Integration

Last updated 1 year ago

🔐
💉