abuseio/findcontact-custom
最新稳定版本:1.1.2
Composer 安装命令:
composer require abuseio/findcontact-custom
包简介
AbuseIO module for custom lookups to backend systems.
README 文档
README
findcontact module for custom lookups to backend systems
Installation
- Install the package by running this command in your AbuseIO installation folder:
composer require abuseio/findcontact-custom
Talking against an API
If you're going to talk against an API, copy the php files from examples/template to the src and config folders like so (from within the AbuseIO installation folder):
cp vendor/abuseio/findcontact-custom/examples/template/config/Custom.php vendor/abuseio/findcontact-custom/config/ cp vendor/abuseio/findcontact-custom/examples/template/src/Custom.php vendor/abuseio/findcontact-custom/src/
Now delete the example folder:
rm -r vendor/abuseio/findcontact-custom/examples
You can now write your own code within the 'getContactBy*' methods.
Talking against an Database
If you're going to talk against an Database directly, copy the php files from examples/postgres to the src and config folders like so (from within the AbuseIO installation folder):
cp vendor/abuseio/findcontact-custom/examples/postgres/config/Custom.php vendor/abuseio/findcontact-custom/config/ cp vendor/abuseio/findcontact-custom/examples/postgres/src/Custom.php vendor/abuseio/findcontact-custom/src/ cp vendor/abuseio/findcontact-custom/examples/postgres/src/CustomServiceProvider.php vendor/abuseio/findcontact-custom/src/
Now delete the example folder:
rm -r vendor/abuseio/findcontact-custom/examples
Add the following line to providers array in the file config/app.php:
'AbuseIO\FindContact\Custom\CustomServiceProvider'
You can now write your own code within the 'getContactBy*' methods.
See Models/Ip4.php for information on setting foreign keys in your database
统计信息
- 总下载量: 365
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2015-10-27