Download the PHP package phpforce/soap-client without Composer
On this page you can find all versions of the php package phpforce/soap-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phpforce/soap-client
More information about phpforce/soap-client
Files in phpforce/soap-client
Package soap-client
Short Description A PHP client for the Salesforce SOAP API
License MIT
Informations about the package soap-client
I’m looking for maintainers!
PHPForce Soap Client: a PHP client for the Salesforce SOAP API
Introduction
This library is a client for the Salesforce SOAP API, and intended as a replacement for the Force.com Tookit for PHP.
Features
This library’s features include the following.
- Automatic conversion between PHP and SOAP date and datetime objects.
- Automatic conversion of Salesforce (UTC) times to your local timezone.
- Easily extensible through events: add custom logging, caching, error handling etc.
- Iterating over large results sets that require multiple calls to the API is easy through the record iterator.
- The BulkSaver helps you stay within your Salesforce API limits by using bulk creates, deletes, updates and upserts.
- Completely unit tested (still working on that one).
- Use the client in conjunction with the Symfony2 Mapper Bundle to get even easier access to your Salesforce data.
Installation
This library is available on Packagist. The recommended way to install this library is through Composer:
Usage
The client
Use the client to query and manipulate your organisation’s Salesforce data. First construct a client using the builder:
SOQL queries
This will fetch five accounts from Salesforce and return them as a
RecordIterator
. You can now iterate over the results. The account’s
SystemModstamp
is returned as a \DateTime
object:
One-to-many relations (subqueries)
Results from subqueries are themselves returned as record iterators. So:
Fetching large numbers of records
If you issue a query that returns over 2000 records, only the first 2000 records
will be returned by the Salesforce API. Using the queryLocator
, you can then
fetch the following results in batches of 2000. The record iterator does this
automatically for you:
Logging
To enable logging for the client, call withLog()
on the builder. For instance when using Monolog:
All requests to the Salesforce API, as well as the responses and any errors that it returns, will now be logged.