bissolli / laravel-fullcontact
Laravel FullContact
v1.0.1
2018-11-12 12:30 UTC
Requires
- php: >= 5.6
- guzzlehttp/guzzle: 6.*
- illuminate/support: 5.2.*|5.3.*|5.4.*|5.5.*|5.6.*
Requires (Dev)
- laravel/framework: 5.2.*|5.3.*|5.4.*|5.5.*|5.6.*
- mockery/mockery: ~0.9|~1.0
- phpunit/phpunit: 5.5.*|6.0.*|7.0.*
This package is auto-updated.
Last update: 2024-11-21 01:43:11 UTC
README
- In your .env file set FullContact API key in FULLCONTACT_API_KEY
- [
php artisan vendor:publish --provider="Bissolli\FullContact\FullContactServiceProvider"
] - In your
app/config/app.php
add provider:'Bissolli\FullContact\FullContactServiceProvider'
- In your
app/config/app.php
add alias:'FullContact' => Bissolli\FullContact\FullContactFacade::class,
Usage:
Lookup by email:
* $person = FullContact::lookupByEmail( 'shawn@mantelope.io' );
Lookup by phone:
* $person = FullContact::lookupByPhone( '123-456-7890' );
Lookup by Twitter:
* $person = FullContact::lookupByTwitter( 'MantelopeMusk' );
Lookup by Facebook:
& $person = FullContact::lookupByFacebook( 'mike-corkum' ,'US' );
* countryCode parameter defaults to US if not provided *
Account Stats:
& $stats = FullContact::accountStats( '2012-08' );
* Period parameter is optional *