chrisjohnleah / joblogic-api-laravel
Laravel bridge for the Joblogic API SDK.
Package info
github.com/chrisjohnleah/joblogic-api-laravel
pkg:composer/chrisjohnleah/joblogic-api-laravel
Requires
- php: ^8.3
- chrisjohnleah/joblogic-api: ^1.0
- illuminate/cache: ^11.0|^12.0|^13.0
- illuminate/support: ^11.0|^12.0|^13.0
Requires (Dev)
- pestphp/pest: ^5.0
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.