PHP SDK
This SDK is currently in development and not yet published. The API surface described below is planned. Use the REST API directly in the meantime.
The official PHP SDK for the Laddro Career API.
Installation
Package not yet published. Check back soon.
Quick Start
use Laddro\Career\LaddroClient;
$client = new LaddroClient(apiKey: $_ENV['LADDRO_API_KEY']);
// List templates
$templates = $client->templates()->list();
// Parse a resume
$resume = $client->resumes()->parse('/path/to/resume.pdf');
// Tailor for a job
$result = $client->tailor(
resumeId: $resume->id,
jobDescription: 'Senior Engineer at...'
);Streaming
$stream = $client->tailor(
resumeId: 'res_abc123',
jobDescription: '...',
stream: true
);
foreach ($stream as $event) {
echo $event->section . ': ' . $event->content . PHP_EOL;
}Error Handling
use Laddro\Career\Exceptions\LaddroException;
try {
$client->resumes()->get('nonexistent');
} catch (LaddroException $e) {
echo $e->getStatus(); // 404
echo $e->getMessage(); // "Resume not found"
}Source
Last updated on