SDKs
PHP SDK
PHP SDK
The official PHP SDK for the Laddro Career API.
Installation
composer require laddro/career-sdkQuick 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,
positionName: 'Senior Engineer',
jobDescription: 'We are looking for...'
);Streaming
$stream = $client->tailor(
resumeId: 'res_abc123',
positionName: 'Senior Engineer',
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"
}