Download the PHP package setechsolutions/eloquent-sales-force without Composer
On this page you can find all versions of the php package setechsolutions/eloquent-sales-force. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download setechsolutions/eloquent-sales-force
More information about setechsolutions/eloquent-sales-force
Files in setechsolutions/eloquent-sales-force
Package eloquent-sales-force
Short Description Work with Salesforce objects as Eloquent models: an Eloquent driver for SOQL and the Salesforce REST API.
License MIT
Homepage https://github.com/SETechSolutions/eloquent-sales-force
Informations about the package eloquent-sales-force
Eloquent Salesforce
Work with Salesforce objects the way you work with Eloquent models: query, create, update, delete and relate them with the API you already know. The package translates Eloquent queries to SOQL and talks to the Salesforce REST API for you.
This is the maintained continuation of roblesterjr04/EloquentSalesForce by Rob Lester, which stopped at Laravel 11. Version 3 supports Laravel 12 and 13 and can replace rob-lester-jr04/eloquent-sales-force without code changes: the original class names keep working.
Requirements
| Package version | Laravel | PHP |
|---|---|---|
| 3.x | 12, 13 | 8.2+ (8.3+ for Laravel 13) |
For Laravel 11 and older, use the original package.
Installation
A fresh Laravel 13 application ships with Guzzle 8, while the Salesforce client this package builds on still needs Guzzle 7. If Composer reports a conflict on
guzzlehttp/guzzle, add-Wso it may switch to Guzzle 7, which Laravel 13 supports as well:
Add your connected app's credentials to .env:
Then create a model:
Coming from the original package
Your code keeps working: the Lester\EloquentSalesForce\* class names, the eloquent_sf config file, the SObjects facade and a soql connection in config/database.php are all still supported.
Worth knowing before you deploy:
- Values in queries are now escaped for you, so stop escaping quotes yourself.
- Date comparisons use true UTC and only accept dates.
- The sync webhook requires
SF_SYNC_SECRET.
Everything that is new or changed is on one page: New in version 3+. Step-by-step details are in UPGRADE.md.
Documentation
The full guide is at setechsolutions.github.io/eloquent-sales-force, and in docs/README.md.
Testing your application
Swap Salesforce for an in-memory fake, stub what queries return, and assert on what was written:
Contributing
Bug reports and pull requests are welcome. See CONTRIBUTING.md. The test suite runs offline, so you do not need a Salesforce org to contribute.
Security
Please report vulnerabilities privately; see SECURITY.md.
Credits
- Rob Lester, who created the package and maintained it through version 2.16
- Everyone who contributed to the original project
- omniphx/forrest, the Salesforce REST client underneath
License
MIT. See LICENSE.