Shofy - eCommerce & Multivendor Marketplace Laravel Platform - Biggest Offer! Only $59 - Get it here!
API Keys

API Keys

Manage API keys with plans, device limits, activation and expiry.

Version

1.0.0

Botble Version

>= 7.2.0

Downloads

37

License

MIT

LyTran API Keys

Manage API keys with plans, device limits, activation, and expiry time.
This plugin provides an API key licensing system similar to SaaS activation workflows.


Features

  • Create single or bulk API keys
  • Define plan durations: 1 Day, 1 Month, 3 Months, 6 Months, 9 Months, 1 Year
  • Limit maximum devices per key
  • Track activation date, last used date, remaining days
  • Reset device list for any key
  • Delete single key or delete all keys
  • Export keys to CSV
  • Multi-language support following Botble CMS standards
  • Clean UI integrated with Botble Admin Theme
  • Asset publishing & versioned plugin structure

Installation

  1. Upload the plugin folder lytran-api-keys into:

    platform/plugins/
    
  2. Go to Admin Panel → Extensions → Installed Plugins

  3. Find LyTran API Keys

  4. Click Activate


Plugin Structure

lytran-api-keys/
├── config/
├── database/
├── helpers/
├── resources/
│   ├── assets/
│   │   └── images/screenshot.png
│   ├── lang/
│   └── views/
├── routes/
├── src/
│   ├── Http/
│   │   ├── Controllers/
│   │   └── Requests/
│   ├── Models/
│   ├── Repositories/
│   └── Providers/ApiKeysServiceProvider.php
├── plugin.json
└── README.md

REST API Endpoints

Method Endpoint Description
POST /lt-api/v1/activate Activate an API key with device ID
POST /lt-api/v1/ping Heartbeat to keep session active
POST /lt-api/v1/status Check key status

Example request:

{
  "api_key": "YOUR_KEY",
  "device_id": "DEVICE_HASH"
}

Example response:

{
  "ok": true,
  "activated_at": "2025-01-01 00:00:00",
  "expires_at": "2025-02-01 00:00:00",
  "duration_days": 30,
  "max_devices": 1,
  "devices": [],
  "ping_interval": 30
}

Admin Panel

Inside admin dashboard:

  • API Keys Table
    View all keys with filters (plan, status, search)

  • Bulk Create
    Generate multiple keys at once

  • Reset Devices
    Clear stored devices for a specific API key

  • Delete All Keys
    Remove all keys in the system


Asset Publishing

The plugin publishes its assets automatically:

public/vendor/lytran-api-keys/

Multi-language Support

All text follows Botble’s translation structure:

resources/lang/en/
resources/lang/vi/

License

This plugin is licensed for private usage by Ly Tran.


Author

Ly Tran
Website: https://congnghe360.com

Support me ❤️

  • Bank Information: TP.Bank - TRAN PHUOC LY - 939.6879.8888
Kindly log in to share your feedback on this plugin.