https://github.com/boldare/salesforce-client
https://github.com/boldare/salesforce-client
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/boldare/salesforce-client
- Owner: boldare
- License: mit
- Created: 2017-01-04T13:24:07.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-01-22T09:10:30.000Z (over 6 years ago)
- Last Synced: 2025-04-06T21:08:27.106Z (about 1 year ago)
- Language: PHP
- Size: 223 KB
- Stars: 30
- Watchers: 47
- Forks: 13
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
----------
# xsolve-pl/salesforce-client
[](https://travis-ci.com/xsolve-pl/salesforce-client)
[](https://scrutinizer-ci.com/g/xsolve-pl/salesforce-client/?branch=master)
[](https://scrutinizer-ci.com/g/xsolve-pl/salesforce-client/?branch=master)
## 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](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](https://packagist.org/providers/php-http/client-implementation), 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](doc/README.md)