xsolve-pl / salesforce-client
Salesforce REST client for PHP
Installs: 18 120
Dependents: 0
Suggesters: 0
Security: 0
Stars: 30
Watchers: 48
Forks: 13
Open Issues: 5
Requires
- php: >=7.0.0
- eloquent/enumeration: ^5.1
- guzzlehttp/psr7: ^1.3
- jms/serializer: ~1.4
- php-http/httplug: ^1.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.0
- phpunit/phpunit: ^6.5
Suggests
- blablacar/redis-client: Needed if Redis will be used as the storage for tokens
- php-http/client-implementation: Needed for sending HTTP requests. For example php-http/guzzle6-adapter.
This package is not auto-updated.
Last update: 2024-11-10 02:48:59 UTC
README
xsolve-pl/salesforce-client
Introduction
This library is for integration with Salesforce via REST API.
Licence
This library is under the MIT license. See the complete license in LICENSE file.
Getting started
Add the library to your project using Composer as follows:
$ composer require xsolve-pl/salesforce-client
We are using http://httplug.io/, so you can use any of existing adapters, for example:
$ composer require php-http/guzzle6-adapter
Otherwise you need to create your own implementation.
To store access token we have implemented BlaBlaCarRedis token storage, but it needs blablacar/redis-client
$ composer require blablacar/redis-client "~1.0"
Another option for token storage is RequestTokenStorage
(this will keep the token in own property (memory) so the token would last until the script is terminated (e.g. current request), which is not really effective). Of course you can create your own storage, everything what you need to do is to create a class which implements Xsolve\SalesforceClient\Storage\TokenStorageInterface
Documentation
Documentation is available in the doc directory. Read documentation