dustink66 / 115open-php-sdk
115开放平台 PHP SDK,支持设备码授权、二维码轮询、access_token获取/刷新、用户信息等。中英文注释,单元测试,CI集成。115 Open Platform PHP SDK with device code auth, QR polling, token, user info, tests, CI.
v1.0.0
2025-07-14 08:43 UTC
Requires
- php: >=7.2
- ext-json: *
Requires (Dev)
- phpunit/phpunit: ^9.0
README
115 Open Platform PHP SDK
115 Open Platform PHP SDK. Composer installable, well-documented, with unit tests.
Provides device code auth, QR code login, token management, user info, file management, and offline download. Based on the official documentation, suitable for secondary development and rapid integration.
Features
- Device Code Authorization
- QR Code Login
- Token Management
- User Info
- File Management
- Offline Download
Installation
composer require dustink66/115open-php-sdk
Quick Start
<?php require 'vendor/autoload.php'; use Open115\Client; $client = new Client('your_client_id'); // Device Code Auth $authUrl = $client->auth->getDeviceCodeUrl(); // Get user info $user = $client->user->getInfo();
Main API Examples
// List files $files = $client->fileManager->list(); // Offline download $client->offline->addTask($url);
Contributing
Pull requests and issues are welcome!
License
MIT