furbyus / sips
从各种提供商收集信息和适配器
dev-master / 1.1.1.x-dev
2020-07-17 09:50 UTC
Requires (Dev)
- phpunit/phpunit: ^8.4
- symfony/var-dumper: ^5.0
This package is auto-updated.
Last update: 2024-09-17 19:33:41 UTC
README
这是一个从一些精力充沛的源头点提供商收集信息和适配器的工具。本包旨在为每个可以处理的提供商(如下所示)请求和标准化结果数据。
## 使用 composer 安装: #composer require furbyus/sips
注意事项!
此包需要授权信息,如密钥和/或用户令牌,才能与提供商一起使用。确保在测试之前您有访问提供商的权限!
为了使其与 Laravel 一起工作,您可能需要发布配置文件 "php artisan vendor:publish"。此配置文件将位于路径 "config/sips.php",其格式如下
<?php return [ 'config'=>[ 'Nemon' => [ 'token' => env('SIPS_NEMON_TOKEN','abcdefghi'), 'endpoint' => env('SIPS_NEMON_ENDPOINT','https://endpoint.to.connect.nemon.com/api/'), ], 'another_privider' => [ 'provider-specific-config-1' => env('SIPS_NABALIA_CONFIG_1',"abcdefghi"), 'provider-specific-config-2' => env('SIPS_NABALIA_CONFIG_2','https://endpoint.to.connect.nemon.com/api/'), 'provider-specific-config-3' => env('SIPS_NABALIA_CONFIG_3','secret'), ], ] ];
然后,您可以覆盖默认值或简单地定义一个环境变量在 .env 文件中,如下所示
- SIPS_NEMON_TOKEN='jklmn'
- SIPS_NEMON_ENDPOINT='https://another.endpoint.to.connect.nemon.com/api/' 此连接信息将由提供商公司提供。
支持的提供商
- Nemon