PHPackages                             fatindeed/seniverse-api - 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. fatindeed/seniverse-api

ActiveLibrary[API Development](/categories/api)

fatindeed/seniverse-api
=======================

PHP Client for Seniverse API

1.0.0(6y ago)06MITPHPPHP &gt;=7.1

Since May 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/fatindeed/seniverse-api)[ Packagist](https://packagist.org/packages/fatindeed/seniverse-api)[ Docs](https://github.com/fatindeed/seniverse-api)[ RSS](/packages/fatindeed-seniverse-api/feed)WikiDiscussions master Synced 1mo ago

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

PHP Client for Seniverse API
============================

[](#php-client-for-seniverse-api)

[![PHP Version](https://camo.githubusercontent.com/c20d3d0f163c9e43d460addad267f0b4b29acbc22ec2df5385b0136ad2ac1097/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f666174696e646565642f73656e6976657273652d6170692e737667)](https://camo.githubusercontent.com/c20d3d0f163c9e43d460addad267f0b4b29acbc22ec2df5385b0136ad2ac1097/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f666174696e646565642f73656e6976657273652d6170692e737667) [![Packagist Version](https://camo.githubusercontent.com/bab6b9812a1ae4dadf179d291e366c9699071f166dd262d79dd30d0f12109ce8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666174696e646565642f73656e6976657273652d6170692e737667)](https://packagist.org/packages/fatindeed/seniverse-api) [![Downloads](https://camo.githubusercontent.com/0a5e8fb135ab4ab123120e0ad1a56e2a54b6719b8b528b8e28b1989a5770c220/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f666174696e646565642f73656e6976657273652d6170692e737667)](https://camo.githubusercontent.com/0a5e8fb135ab4ab123120e0ad1a56e2a54b6719b8b528b8e28b1989a5770c220/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f666174696e646565642f73656e6976657273652d6170692e737667) [![License](https://camo.githubusercontent.com/22eedd9f7f21fa7551a4714d1f8dc91602774695948985f690582817b02c4889/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f666174696e646565642f73656e6976657273652d6170692e737667)](https://camo.githubusercontent.com/22eedd9f7f21fa7551a4714d1f8dc91602774695948985f690582817b02c4889/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f666174696e646565642f73656e6976657273652d6170692e737667) [![Build Status](https://camo.githubusercontent.com/1c08ffc60fad88c471b13338e01afb9746ca1f2132ff9acdc6cd661d32e5776d/68747470733a2f2f7472617669732d63692e6f72672f666174696e646565642f73656e6976657273652d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/fatindeed/seniverse-api)

Seniverse 账号注册
--------------

[](#seniverse-账号注册)

[注册页面](https://www.seniverse.com/signup)

### 开始

[](#开始)

```
composer require fatindeed/seniverse-api
```

配置环境变量（如.env）：

```
SENIVERSE_UID="your public key"
SENIVERSE_KEY="your private key"
```

或者也可以在使用时直接传入：

```
$weather = new SeniverseApi\Weather([
    'uid' => 'your public key',
    'key' => 'your private key'
]);
```

[查看你的API密钥](https://docs.seniverse.com/api/start/key.html)

### 城市搜索

[](#城市搜索)

```
$location = new SeniverseApi\Location;
$result = $location->search('WTW3SJ5ZBJUY');
```

### 天气实况

[](#天气实况)

```
$weather = new SeniverseApi\Weather;
$result = $weather->now('WTW3SJ5ZBJUY');
```

### 逐日天气预报

[](#逐日天气预报)

```
$weather = new SeniverseApi\Weather;
$result = $weather->daily('WTW3SJ5ZBJUY');
```

### 生活指数

[](#生活指数)

```
$life = new SeniverseApi\Life;
$result = $life->suggestion('WTW3SJ5ZBJUY');
```

FAQs
----

[](#faqs)

1. [免费用户可以调用哪些数据](https://docs.seniverse.com/product/other/other.html#_1-%E5%85%8D%E8%B4%B9%E7%94%A8%E6%88%B7%E5%8F%AF%E4%BB%A5%E8%B0%83%E7%94%A8%E5%93%AA%E4%BA%9B%E6%95%B0%E6%8D%AE)

    - 国内 370 个地级市
    - 天气实况（2 项)
    - 3 天天气预报
    - 生活指数（基础 6 项)
2. [城市列表](https://docs.seniverse.com/product/other/city.html)

References
----------

[](#references)

- [PHP Demo](https://github.com/seniverse/seniverse-api-demos/tree/master/php)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2549d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/24bf4121bacddbc5b41de57941796c755c941ae02d4c8ea41157eea3a63602b5?d=identicon)[fatindeed](/maintainers/fatindeed)

---

Top Contributors

[![fatindeed](https://avatars.githubusercontent.com/u/168262?v=4)](https://github.com/fatindeed "fatindeed (1 commits)")

---

Tags

weatherseniverse

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fatindeed-seniverse-api/health.svg)

```
[![Health](https://phpackages.com/badges/fatindeed-seniverse-api/health.svg)](https://phpackages.com/packages/fatindeed-seniverse-api)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[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)[gnahotelsolutions/laravel-weather

🌤️ A wrapper around Open Weather Map to get the current weather on a location.

385.3k](/packages/gnahotelsolutions-laravel-weather)[apixu/apixu-php

PHP library for Apixu Weather API

223.6k](/packages/apixu-apixu-php)[rugaard/weatherkit

Integrate Apple WeatherKit API into your project

111.4k](/packages/rugaard-weatherkit)

PHPackages © 2026

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