thank-song/teapplix

Laravel package for Teapplix API.

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/thank-song/teapplix

V1.0.3 2025-08-25 07:05 UTC

This package is auto-updated.

Last update: 2025-11-25 07:42:10 UTC


README

Installation

Compatible with Laravel 8.x and above

We recommend installing the package locally using the following command:

composer require thank-song/teapplix
> 适配 Laravel 8.x 及以上版本

⚙️ 配置 Configuration

直接在环境文件(.env)中新增 TEAPPLIX_API_TOKEN=93***-*****-*****-*****-*****-*****-*9d3 变量:

或发布配置文件到主项目:

php artisan vendor:publish --tag=teapplix

config/teapplix.php 中配置:

return [
    // 使用 .env 中的配置自动初始化
    'api_token'=>env('TEAPPLIX_API_TOKEN','YOUR-API-TOKEN-HERE')
];

🚀 使用方式 Usage

📝 示例:获取产品列表

use ThankSong\Teapplix\Teapplix;

$res = Teapplix::getProducts();
dump($res -> getData());
dump($res -> getPage());
dump($res -> getPageSize());
dump($res -> hasMore());

📚 License

MIT