Package Data | |
---|---|
Maintainer Username: | AbuseIO |
Maintainer Contact: | dev@abuse.io (AbuseIO Foundation) |
Package Create Date: | 2015-10-27 |
Package Last Update: | 2017-07-01 |
Language: | PHP |
License: | GPL-2.0 |
Last Refreshed: | 2024-11-11 15:23:08 |
Package Statistics | |
---|---|
Total Downloads: | 363 |
Monthly Downloads: | 1 |
Daily Downloads: | 1 |
Total Stars: | 0 |
Total Watchers: | 6 |
Total Forks: | 3 |
Total Open Issues: | 2 |
findcontact module for custom lookups to backend systems
composer require abuseio/findcontact-custom
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.
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