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.

Maintainers

Package info

github.com/dustink66/115open-php-sdk

pkg:composer/dustink66/115open-php-sdk

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2025-07-14 08:43 UTC

This package is auto-updated.

Last update: 2026-04-14 10:18:50 UTC


README

中文版 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