PHPackages                             thank-song/lingxing - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. thank-song/lingxing

ActiveLibrary[API Development](/categories/api)

thank-song/lingxing
===================

Laravel package for LingXing API.

V1.25.12.18(4mo ago)19MITPHPPHP ^8.0

Since Oct 31Pushed 4mo agoCompare

[ Source](https://github.com/AndyMoxq/lingxing-api)[ Packagist](https://packagist.org/packages/thank-song/lingxing)[ RSS](/packages/thank-song-lingxing/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

LingXing Laravel Package
========================

[](#lingxing-laravel-package)

Installation
------------

[](#installation)

> Compatible with Laravel 8.x and above

We recommend installing the package locally using the following command:

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

⚙️ 配置 Configuration
-------------------

[](#️-配置-configuration)

直接在环境文件(.env)中新增
`LINGXING_APP_ID=YOUR-APP-ID-HERE` , `LINGXING_APP_SECRET=YOUR-APP-SECRET-HERE`

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

```
php artisan vendor:publish --tag=lingxing
```

在 `config/lingxing.php` 中配置：

```
return [
    // 使用 .env 中的配置自动初始化
    'appId'=>env('LINGXING_APP_ID','YOUR-APP-ID-HERE'),
    'appSecret'=>env('LINGXING_APP_SECRET','YOUR-APP-SECRET-HERE'),
    'host' => env('LINGXING_HOST','https://openapi.lingxing.com')
];
```

🚀 使用方式 Usage
------------

[](#-使用方式-usage)

### 📝 示例：请求类-获取订单列表

[](#-示例请求类-获取订单列表)

```
use ThankSong\LingXing\Request\GetOrderListRequest;

$request = new GetOrderListRequest();
$request -> setOffset(0)
         -> setLength(20)
         -> setDateType('update_time')
         -> setStartTime(now()->subHours(2)->timestamp)
         -> setEndTime(now()->endOfDay()->timestamp);
$response = $request -> send();

dump($response -> getData());
```

### 📝 示例：基础请求-获取产品列表

[](#-示例基础请求-获取产品列表)

```
use ThankSong\LingXing\LingXing;

$res = LingXing::basicRequest('/erp/sc/data/local_inventory/supplier',['offset'=>$offset,'length'=>$length]);
dump($res -> getData());
dump($res -> hasMore());
```

### 📝 示例：获取产品列表

[](#-示例获取产品列表)

```
use ThankSong\LingXing\LingXing;

$res = LingXing::getProducts();
dump($res -> getData());
dump($res -> hasMore());
```

📚 License
---------

[](#-license)

MIT

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance74

Regular maintenance activity

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~48 days

Total

2

Last Release

145d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fbc5c485ed4609a934dba135f1dcfc1201511d73acc53f896a53ba41caf3e1ae?d=identicon)[AndyMoxq](/maintainers/AndyMoxq)

---

Tags

laravellingxing

### Embed Badge

![Health badge](/badges/thank-song-lingxing/health.svg)

```
[![Health](https://phpackages.com/badges/thank-song-lingxing/health.svg)](https://phpackages.com/packages/thank-song-lingxing)
```

###  Alternatives

[rakibdevs/openweather-laravel-api

Laravel package to connect https://openweathermap.org/ to get customized weather data for any location on the globe immediately

7648.2k](/packages/rakibdevs-openweather-laravel-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
