Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 813 Bytes

README.md

File metadata and controls

43 lines (27 loc) · 813 Bytes

ApexClient

ApexClient is a Laravel package for interacting with Salesforce Apex API.

Installation

You can install the package via composer:

composer require antogkou/salesforce-apex-client

Usage

use antogkou\ApexClient\Facades\ApexClient;

// Get data from Salesforce
$response = Salesforce::get('your/api/endpoint');

// Post data to Salesforce
$response = Salesforce::post('your/api/endpoint', ['key' => 'value']);

Configuration

Publish the config file:

php artisan vendor:publish --provider="antogkou\ApexClient\ApexClientServiceProvider"

Then, update the config/salesforce.php file with your Salesforce credentials.

Testing

composer test

License

The MIT License (MIT). Please see License File for more information.