oilstone / api-salesforce-integration
A Salesforce integration package for garethhudson07/api
v0.0.2
2025-06-16 16:07 UTC
Requires
- garethhudson07/aggregate: ^1.2
- garethhudson07/api: ^9.5
- guzzlehttp/guzzle: ^7.9
- nesbot/carbon: ^3.10
Requires (Dev)
- laravel/framework: ^11.0
- oilstone/api-resource-loader: ^5.3
- psr/http-message: ^1.0
This package is auto-updated.
Last update: 2025-06-16 16:08:27 UTC
README
A Salesforce integration package for garethhudson07/api
Laravel Integration
The package ships with an optional Laravel service provider that handles authentication and caching of access tokens. Register the provider and publish the configuration file:
// config/app.php 'providers' => [ Oilstone\ApiSalesforceIntegration\Integrations\Laravel\ServiceProvider::class, ],
php artisan vendor:publish --tag=config --provider="Oilstone\\ApiSalesforceIntegration\\Integrations\\Laravel\\ServiceProvider"
The config/salesforce.php
file allows you to specify your
Salesforce instance details and credentials:
return [ 'instance_url' => env('SALESFORCE_INSTANCE_URL'), 'instance_version' => env('SALESFORCE_INSTANCE_VERSION', 'v52.0'), 'client_id' => env('SALESFORCE_CLIENT_ID'), 'client_secret' => env('SALESFORCE_CLIENT_SECRET'), ];
The service provider retrieves an access token using these values and caches it for subsequent requests using Laravel's cache facade.