{"id":27192225,"url":"https://github.com/imactool/dssplat","last_synced_at":"2025-04-09T18:44:12.015Z","repository":{"id":44513449,"uuid":"456818301","full_name":"iMactool/dssplat","owner":"iMactool","description":"大华H8900平台","archived":false,"fork":false,"pushed_at":"2022-02-10T05:12:13.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-23T21:08:35.132Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iMactool.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-08T06:56:10.000Z","updated_at":"2022-02-10T03:03:03.000Z","dependencies_parsed_at":"2022-09-13T11:51:37.027Z","dependency_job_id":null,"html_url":"https://github.com/iMactool/dssplat","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iMactool%2Fdssplat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iMactool%2Fdssplat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iMactool%2Fdssplat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iMactool%2Fdssplat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iMactool","download_url":"https://codeload.github.com/iMactool/dssplat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248090727,"owners_count":21046139,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-09T18:44:10.922Z","updated_at":"2025-04-09T18:44:12.004Z","avatar_url":"https://github.com/iMactool.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e dssplat \u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e 大华独立系统H8900平台接口.\u003c/p\u003e\n\n[![Latest Stable Version](http://poser.pugx.org/imactool/dssplat/v)](https://packagist.org/packages/imactool/dssplat) \n[![Latest Unstable Version](http://poser.pugx.org/imactool/dssplat/v/unstable)](https://packagist.org/packages/imactool/dssplat) \n[![License](http://poser.pugx.org/imactool/dssplat/license)](https://packagist.org/packages/imactool/dssplat) \n[![PHP Version Require](http://poser.pugx.org/imactool/dssplat/require/php)](https://packagist.org/packages/imactool/dssplat)\n\n\n## Installing\n\n```shell\n$ composer require imactool/dssplat -vvv\n```\n\n## 使用前必看\n\nH8900对外接口根据版本不同所用的接口文档也是不一样的,另外H8900的对外接口是根据设备来的,现场采用不同的设备所要对接的接口也是不一样的。\n所以具体以实际项目部署为准，本`SDK`对接的版本是【`DSS-H8900-SDK-20200111版本(v3.1.4)`】\n\n\n## 使用方法\n\u003e 更多内容请看具体文件，后续逐步完善中\n\n``` \n\n require __DIR__ .'/vendor/autoload.php';\n\n use Imactool\\Dssplat\\DssPlat;\n\n $config = [\n     'ip' =\u003e '192.168.0.12',\n     'port' =\u003e '8314',\n     'loginName' =\u003e 'system',\n     'loginPass' =\u003e '123456',\n ];\n\n $app = new DssPlat($config);\n \n $result = $app-\u003eAuth-\u003elogin(); //必须先登录，才可以继续调用其他的接口\n \n \n //获取组织树\n $result = $app-\u003eOrg-\u003egetVimsTree();\n var_dump($result);\n if ($result['success'] == true){\n     echo \"成功获取到组织树 \u003cBr/\u003e\";\n    foreach ($result['data'] as $val){\n        echo \"父级节点 【{$val['id']}】\u003cbr/\u003e\";\n    }\n }\n\n //查询设备\n $res = $app-\u003eOrg-\u003egetDeviceInfo();\n if ($res['result']['code'] == 'success'){\n     echo \"成功获取到 查询设备  \u003cBr/\u003e\";\n     $val = [];\n     foreach ($res['data'] as $val){\n        var_dump($val);\n     }\n }\n```\n\n对应的实现的接口文档\n\n```apacheconf\n.\n├── 01-基础数据接口文档  已实现\n├── 02-门禁子系统接口文档 已实现\n├── 03-考勤子系统接口文档\n├── 04-巡更子系统接口文档\n├── 05-梯控子系统接口文档\n├── 06-消费子系统接口文档\n├── 07-访客子系统接口文档\n├── 08-会议子系统接口文档\n├── 09-客流子系统接口文档\n├── 10-报警子系统接口文档\n├── 11-视频子系统接口文档\n├── 12-停车子系统接口文档\n├── 13-对讲子系统接口文档\n├── 14-动环子系统接口文档\n├── 15-人脸子系统接口文档\n├── 16-工地子系统接口文档\n├── 17-小区子系统接口文档\n└── 99-事件订阅类接口文档\n```\n\n## Contributing\n\nYou can contribute in one of three ways:\n\n1. File bug reports using the [issue tracker](https://github.com/imactool/dssplat/issues).\n2. Answer questions or fix bugs on the [issue tracker](https://github.com/imactool/dssplat/issues).\n3. Contribute new features or update the wiki.\n\n_The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable._\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimactool%2Fdssplat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimactool%2Fdssplat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimactool%2Fdssplat/lists"}