chrisjohnleah/joblogic-api-laravel

Laravel bridge for the Joblogic API SDK.

Maintainers

Package info

github.com/chrisjohnleah/joblogic-api-laravel

pkg:composer/chrisjohnleah/joblogic-api-laravel

Transparency log

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.1 2026-08-10 06:55 UTC

This package is auto-updated.

Last update: 2026-08-10 12:27:54 UTC


README

Laravel bridge for chrisjohnleah/joblogic-api, the framework-agnostic Saloon SDK for Joblogic.

composer require chrisjohnleah/joblogic-api-laravel

The bridge provides the Joblogic facade, automatic service-provider discovery, a cache-backed token store, and a manager that builds a tenant- scoped SDK client. Provider transport and response types remain in the core package; tenant migration policy belongs in the consuming application.

use ChrisJohnLeah\JoblogicLaravel\Facades\Joblogic;

$client = Joblogic::client([
    'client_id' => $clientId,
    'client_secret' => $clientSecret,
    'tenant_id' => $tenantId,
]);

$customers = $client->search('Customer/GetAll', [
    'IncludeInactive' => true,
]);

// The returned client also exposes the documented upload/note primitives:
// $uploadUri = $client->getUploadFileUri('doorops-form.pdf');
// $client->uploadFile($uploadUri->json('Uri'), $pdfStream);
// $client->createNote([
//     'EntityId' => $jobId,
//     'EntityType' => 3,
//     'NoteText' => 'DoorOps reviewed form',
//     'Attachments' => [['AttachmentLink' => $uploadUri->json('Uri'), 'Name' => 'doorops-form.pdf']],
// ]);

Publish the optional cache configuration with:

php artisan vendor:publish --tag=joblogic-config

The cache store only holds short-lived access tokens. Credentials should be provided by the consuming application’s secret manager or environment.