Download the PHP package mkhab7/v2board-sdk without Composer
On this page you can find all versions of the php package mkhab7/v2board-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package v2board-sdk
V2Board SDK
A powerful PHP SDK for V2Board API that makes it easy to interact with your V2Board instance.
Installation
Using Composer
Manual Installation
-
Clone the repository:
-
Install dependencies:
- Include the autoloader:
Features
- ๐ Authentication - Login, logout, and token management
- ๐ค User Management - Get user info, generate users, update users
- ๐ System Monitoring - Real-time system statistics and performance data
- ๐ Plan Management - Fetch, create, and update subscription plans
- ๐ฅ๏ธ Server Groups - Manage server groups and their configurations
- ๐ฅ Admin Tools - Advanced user search by email, ID, or token
- ๐ HTTP Client - Built-in HTTP client for custom API calls
- ๐งช Testing - Comprehensive test suite with Pest framework
Quick Start
Authentication
Authentication Caching
The SDK supports caching authentication tokens to avoid repeated login requests. This is especially useful for applications that need to maintain authentication state across multiple requests.
Basic Caching
External Cache Drivers
You can use external cache systems like Laravel Cache, Redis, or Memcached:
Cache Configuration Options
| Method | Description | Default |
|---|---|---|
setCacheEnabled(bool) |
Enable/disable caching | false |
setCacheTtl(int) |
Set cache TTL in seconds | 3600 (1 hour) |
setCacheFile(string) |
Set custom cache file path | src/Auth/.auth_cache.json |
setCacheDriver(callable) |
Set external cache driver | null |
Cache Behavior
- File-based caching: Data is stored in JSON format with timestamp
- TTL expiration: Cache is automatically invalidated after TTL expires
- Automatic cleanup: Expired cache files are automatically removed
- Cache key: Uses
v2board-auth-dataas the default cache key - Stored data: Token, auth data, admin status, and user data
Example: Laravel Integration
User Information
System Statistics
Admin Operations
Plan Management
Server Group Management
HTTP Client
Error Handling
Testing
Run the test suite:
License
MIT License - see LICENSE file for details.
All versions of v2board-sdk with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
guzzlehttp/guzzle Version ^7.0
psr/http-client Version ^1.0
psr/http-message Version ^1.0
psr/log Version ^3.0
guzzlehttp/guzzle Version ^7.0
psr/http-client Version ^1.0
psr/http-message Version ^1.0
psr/log Version ^3.0
The package mkhab7/v2board-sdk contains the following files
Loading the files please wait ...