PHPackages                             alphathinkyyl/tianditu-sdk - 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. alphathinkyyl/tianditu-sdk

ActiveLibrary[API Development](/categories/api)

alphathinkyyl/tianditu-sdk
==========================

A Laravel SDK for Tianditu API

v2.0.0(10mo ago)05MITPHPPHP &gt;=7.4

Since Jul 10Pushed 10mo agoCompare

[ Source](https://github.com/alphathinkyyl/tianditu-sdk)[ Packagist](https://packagist.org/packages/alphathinkyyl/tianditu-sdk)[ RSS](/packages/alphathinkyyl-tianditu-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

tianditu-sdk
============

[](#tianditu-sdk)

Laravel SDK for Tianditu API

Laravel 项目使用方式
--------------

[](#laravel-项目使用方式)

1. 安装 SDK 包

```
composer require alphathinkyyl/tianditu-sdk
```

2. 发布配置文件：

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

3. 在 `.env` 中添加：

```
TIANDITU_API_KEY=你的key
TIANDITU_BASE_URL=https://api.tianditu.gov.cn
```

4. 使用方式：

```
use Tianditu\TiandituService;

public function search(TiandituService $sdk)
{
    $data = $sdk->place()->searchNormal('天安门');
    return response()->json($data);
}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance55

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~2 days

Total

3

Last Release

302d ago

Major Versions

v1.0.3 → v2.0.02025-07-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/862b7144decb35e2d093399caa00c1a785da5aa29b5403750cccd4719bd49eb3?d=identicon)[alphathinkyyl](/maintainers/alphathinkyyl)

---

Top Contributors

[![alphathinkyyl](https://avatars.githubusercontent.com/u/19257080?v=4)](https://github.com/alphathinkyyl "alphathinkyyl (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alphathinkyyl-tianditu-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/alphathinkyyl-tianditu-sdk/health.svg)](https://phpackages.com/packages/alphathinkyyl-tianditu-sdk)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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