silktide / prospect-php-client
PHP client for integrating Prospect into your projects.
Installs: 2 219
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 1
Open Issues: 7
Requires
- php: ^7.4|^8
- ext-json: *
- guzzlehttp/guzzle: ~6.0|~7.0
Requires (Dev)
- phpstan/phpstan: ^0.12.36
- phpunit/phpunit: ^8.5
- symfony/dotenv: ^5.1
This package is auto-updated.
Last update: 2023-08-13 14:21:37 UTC
README
This has been moved to the Insites organisation and can now be found here
Prospect PHP Client
Example usage
Making Client
// The actual API key needs to be created at https://app.prospect.silktide.com/en_GB/admin/settings#/api $apiKey = "0123456789abcdef"; $prospectClient = \Silktide\ProspectClient\ProspectClient::createFromApiKey($apiKey); $reportApi = $prospectClient->getReportApi();
For more in detail examples, see the examples
folder
Create a new report,
$response = $reportApi->create() ->setUrl("https://example.silktide.com") ->setAddress("Silktide LTD", "17", "Brunel Parkway", "Pride Park", "Derby", "DE24 8HR") ->setName("Silktide") ->setPhone("01322 460460") ->execute(); echo "ReportId: " . $response->getReportId() . "\n";