Download the PHP package goerik/salesforce-rest-sdk without Composer
On this page you can find all versions of the php package goerik/salesforce-rest-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download goerik/salesforce-rest-sdk
More information about goerik/salesforce-rest-sdk
Files in goerik/salesforce-rest-sdk
Package salesforce-rest-sdk
Short Description An SDK for the Salesforce Rest API
License proprietary
Informations about the package salesforce-rest-sdk
Salesforce Rest SDK
This API supports the following areas of the Salesforce API:
- Limits
- Global Describe
- SObject Describe
- SObject CRUD
- SObject Get Updated/Deleted
- Composite API
- Batch
- Tree
- SObject Collections
- Bulk API
- Streaming API
Instantiate a Rest Client
If you have an authorization code returned to your redirectUrl and wish to use it, you can do so like this:
Composer autoloading without a framework
If you happen to not be using a PHP Framework that handles annotation registration for you, like Symfony, then you must do it yourself:
Work with SObjects with the SObject Client
Instantiate the Streaming Client
Subscribe to a PushTopic
You can create a new PushTopic using the Rest Client above. The topic only needs created once in a Salesforce Org. All custom objects are supported by the Streaming API, however, not all standard objects supported.
Supported Standard Objects:
- Account
- Campaign
- Case
- Contact
- ContractLineItem
- Entitlement
- Lead
- LiveChatTranscript
- Opportunity
- Quote
- QuoteLineItem
- ServiceContract
- Task
Tasks that are created or updated using the following methods don’t appear in task object topics in the streaming API.
- Lead conversion
- Entity merge
- Mass email contacts/leads
The
$client->start();
is a blocking call and no code after it will execute until an error occurs in the client, causing it to disconnect.For instance, the client must reconnect to the streaming server within 40 seconds after each notification is received. If it fails to do so, it will attempt to re-handshake to create a new connection. If that fails, then the client will disconnect, which will allow the rest of the script to execute.
It's recommended that the streaming client be run in it's own thread
Future Additions
- Tooling API
- Metadata API
All versions of salesforce-rest-sdk with dependencies
guzzlehttp/guzzle Version ^6.3
jms/serializer Version ^1.13
ramsey/uuid Version ^3.8
doctrine/collections Version ^1.5
symfony/expression-language Version ^4.1