PHPackages                             novastar/auth-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. novastar/auth-api

ActiveLibrary[API Development](/categories/api)

novastar/auth-api
=================

open api sdk

1.0.2(7y ago)1313MITHTMLPHP &gt;=5.6.4

Since Dec 6Pushed 7y ago1 watchersCompare

[ Source](https://github.com/waljqiang/novastar)[ Packagist](https://packagist.org/packages/novastar/auth-api)[ RSS](/packages/novastar-auth-api/feed)WikiDiscussions master Synced 2d ago

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

NovaStar SDK
============

[](#novastar-sdk)

Open API SDK
------------

[](#open-api-sdk)

\#安装

- composer require novastar/auth-api

\#使用方法

- 在项目中引入SDK自动加载文件
- 实例NovaStar\\Api\\Dispatch类
    - 实例化NovaStar\\Api\\Dispatch类时，参数说明

        参数名必选类型默认值说明nodetruestring无服务器节点,具体值请看node节点说明app\_idtruestring无客户端IDapp\_secrettruestring无客户端secretscopefalsestring无接口权限,默认为全部,多个权限用","隔开,具体参考权限对照表cachetrueclass无缓存类，系统提供doctrine/cache中缓存类,用户也可基于此实现自己的缓存类logtruestring无日志目录
    - node节点说明,目前只有新加坡节点可用

        服务器节点value中国节点cn新加坡节点sg美国节点us
    - 权限对照表

        scope接口user-tags获取用户标签列表screen-lists获取用户屏体列表screen-spotcheck获取用户单个屏体点检信息screen-monitor获取用户单个屏体监控数据screen-images获取屏体监控图片(原始图)-多摄像机screen-thumbnails获取用户屏体监控图片(缩略图)-多摄像机
- 通过Dispatch类调用各API方法
- 比如获取用户标签:

```
	require_once __DIR__ . "/vendor/autoload.php";
	use NovaStar\Api\Dispatch;
	use Doctrine\Common\Cache\FilesystemCache;
	use NovaStar\Api\Exceptions\HttpException;
	$apiDispatch = new Dispatch(
		[
			"node" => "cn",
			"app_id" => "3f6deaafb426e72dc88addda6423190ca18efd7287a1e311417da7ee",
			"app_secret" => "E478IXfjQ5Exf6kCCMEIuyvFKSkRdimWxSmQvByV",
			"scope" => "",
			"cache" => new FilesystemCache(dirname(__DIR__ . '/runtime/cache')),
			"log" => [
				"level" => "ERROR",
				"path" => __DIR__ . "/runtime/log/novastar.log"
			]
		]
	);

	try{
		$tags = $apiDispatch->getTags();
		echo '';
		print_r($tags);
		echo '';
	}catch(HttpException $e){
		var_dump($e->getMessage());
	}
```

- 具体请参考Demon中test.php

\#目前提供的API方法

- 获取用户标签列表
    - getTags()
- 获取显示屏列表
    - getScreenList(\["status"=&gt;2,"label"=&gt;222,"search"=&gt;"测试屏"\])
    - 参数说明

        参数名必选类型默认值说明statusfalseint无屏体状态1：在线2：离线3：告警4：故障labelfalseint无标签IDsearchfalsestring无搜索关键字,支持屏体名称和地址查找
- 获取单个屏体点检信息
    - getSpotChecks(\["sid"=&gt;"1111"\])
    - 参数说明

        参数名必选类型默认值说明sidtruestring无屏体ID
- 获取单个屏体监控数据
    - getMonitors(\["sid"=&gt;"1111"\])
    - 参数说明

        参数名必选类型默认值说明sidtruestring无屏体ID
- 获取屏体监控图片-原始图
    - getImages(\["sid"=&gt;\["1111"\]\])
    - 参数说明

        参数名必选类型默认值说明sidtruearray无屏体ID列表
- 获取屏体监控图片-缩略图
    - getThumbnails(\["sid"=&gt;\["1111"\]\])
    - 参数说明

        参数名必选类型默认值说明sidtruearray无屏体ID列表

\#单元测试

- 进入tests目录
- 执行以下命令
    - phpunit -c phpunit.xml ./Units/DispatchTest.php

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

3

Last Release

2680d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10058619?v=4)[nova](/maintainers/waljqiang)[@waljqiang](https://github.com/waljqiang)

![](https://avatars.githubusercontent.com/u/9275777?v=4)[Vance Chang](/maintainers/turncypher)[@turncypher](https://github.com/turncypher)

### Embed Badge

![Health badge](/badges/novastar-auth-api/health.svg)

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

###  Alternatives

[saloonphp/saloon

Build beautiful API integrations and SDKs with Saloon

2.4k9.6M468](/packages/saloonphp-saloon)[googleads/googleads-php-lib

Google Ad Manager SOAP API Client Library for PHP

67410.3M25](/packages/googleads-googleads-php-lib)[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

343121.4M79](/packages/google-cloud-core)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[ashallendesign/laravel-exchange-rates

A wrapper package for interacting with the exchangeratesapi.io API.

485677.8k](/packages/ashallendesign-laravel-exchange-rates)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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