leadpingai / sdk
Official PHP SDK for the Leadping API.
v1.0.2
2026-06-26 16:28 UTC
Requires
- php: >=8.1
- microsoft/kiota-bundle: ^2.0.2
README
Type-safe PHP client for the Leadping API.
Install
composer require leadpingai/sdk
The generated client uses a Kiota request adapter. Install the Kiota bundle in the application that will call Leadping:
composer require microsoft/kiota-bundle:^2.0.2
Use
<?php use Leadping\OpenApiClient\LeadpingOpenApiClient; $adapter = createLeadpingRequestAdapter(); $client = new LeadpingOpenApiClient($adapter); $me = $client->users()->me()->get()->wait();
createLeadpingRequestAdapter is application code. Configure it to send one of:
Authorization: Bearer <token>X-Leadping-Api-Key: <key>
The client defaults to https://api.leadping.ai when the adapter does not already have a base URL.