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(8mo ago)05MITPHPPHP &gt;=7.4

Since Jul 10Pushed 8mo 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 today

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

29

—

LowBetter than 63% of packages

Maintenance60

Regular maintenance activity

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

251d 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

[mocking-magician/coinbase-pro-sdk

Library for coinbase pro API calls

223.2k](/packages/mocking-magician-coinbase-pro-sdk)

PHPackages © 2026

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