silktide/prospect-php-client

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (0.5.1) of this package.

PHP client for integrating Prospect into your projects.

0.5.1 2023-06-12 15:17 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";