PHPackages                             purelightme/reco4life - 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. purelightme/reco4life

ActiveLibrary[API Development](/categories/api)

purelightme/reco4life
=====================

http rest api wrapper for reco4life

3.1(7y ago)4253[1 issues](https://github.com/Purelightme/reco4life/issues)PHP

Since Jul 31Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Purelightme/reco4life)[ Packagist](https://packagist.org/packages/purelightme/reco4life)[ RSS](/packages/purelightme-reco4life/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (9)Used By (0)

Reco4life SDK
=============

[](#reco4life-sdk)

[![Build Status](https://camo.githubusercontent.com/616a3ba801b6fb3ed7273ace8fabe62c54c83c27ff4967bec4d8d4274a10e2c5/68747470733a2f2f7472617669732d63692e6f72672f507572656c696768746d652f7265636f346c6966652e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/616a3ba801b6fb3ed7273ace8fabe62c54c83c27ff4967bec4d8d4274a10e2c5/68747470733a2f2f7472617669732d63692e6f72672f507572656c696768746d652f7265636f346c6966652e7376673f6272616e63683d6d6173746572)

现代物联网智能插座方案reco4life,支持HttpAPI和局域网API.

Sdk client for Reco4life service.

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

[](#installation)

It's recommended that you use [Composer](https://getcomposer.org/) to install this project.

```
composer require purelightme/reco4life
```

This will install the library and all required dependencies.

Usage
-----

[](#usage)

```
use Purelightme\Reco4life;

$reco = new Reco4life(YOUR_RECO_USER_NAME,YOUR_RECO_API_KEY);
$token = $reco->getToken();
$itemLists = $reco->itemList(['user_name' => YOUR_RECO_USER_NAME],$token['token']);
var_dump($itemLists);
```

Test
----

[](#test)

```
vendor/bin/phpunit tests
```

Todo
----

[](#todo)

- 局域网API(基于swoole)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

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

Total

8

Last Release

2587d ago

Major Versions

v1.0.0.x-dev → v2.0.02018-11-08

v2.0.1 → 3.02019-04-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ea34f030f553da5724d3203f3b82ab57839fee67c5de90c56425dd0c9ce38c8?d=identicon)[Purelightme](/maintainers/Purelightme)

---

Top Contributors

[![Purelightme](https://avatars.githubusercontent.com/u/16385534?v=4)](https://github.com/Purelightme "Purelightme (16 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/purelightme-reco4life/health.svg)

```
[![Health](https://phpackages.com/badges/purelightme-reco4life/health.svg)](https://phpackages.com/packages/purelightme-reco4life)
```

###  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)
