Download the PHP package stratease/salesforcery without Composer
On this page you can find all versions of the php package stratease/salesforcery. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download stratease/salesforcery
More information about stratease/salesforcery
Files in stratease/salesforcery
Download stratease/salesforcery
More information about stratease/salesforcery
Files in stratease/salesforcery
Vendor stratease
Package salesforcery
Short Description A PHP Salesforce ORM, inspired by Eloquent's API.
License Apache-2.0
Homepage https://github.com/stratease/salesforcery
Package salesforcery
Short Description A PHP Salesforce ORM, inspired by Eloquent's API.
License Apache-2.0
Homepage https://github.com/stratease/salesforcery
Please rate this library. Is it a good library?
Informations about the package salesforcery
A PHP ORM for Salesforce client applications, utilizing an OAuth2 REST client. Inspired by Eloquent's simple API.
Setup
1. Setting up a Connected App
You need to create a Connected App to generate the client_id
and client_secret
values for the OAuth2 connection. Once created use the credentials to register a connection.
2. Installation
3. Connection
Examples
Defining a model
For a simple setup...
More advanced usage...
- Extend
Stratease\Salesforcery\Salesforce\Database\Model
and you're set! Sorta... - The model's Salesforce Object name is mapped by default via the {ClassName} -> {ObjectName}. You can override by defining the
resourceName
property. - Explicit field definitions allowed with option to override.
get{Field}()
- Will use
SchemaInspector
to discover fields for this resource and automatically hydrate instances with the fields
Query Objects
Modify Objects
Salesforce
This library uses Salesforces REST API. Tested on version 39.
Todo
- Object relations mapping, i.e.
$contact->phone->isMobile
- Add more REST endpoint support
- Batch REST integration
- Object -> field schema cache. As it stands it will request the schema
n * Models
times per run. So if you do a series of requests utilizingAccount
andUser
models, it will request the schema twice, once for each model. - Query builder object
- Look into extended Eloquent more formally.
- Test with other php versions. Was developed on
7.1
- Docker environment for tests. As it stands now tests require a connection to a sandbox environment. Preferred setup for now in order to validate various Salesforce REST protocols are passing muster.
- Currently only support for OAuth2
password
grant type. Accepting pull requests for other authorization protocols.
All versions of salesforcery with dependencies
PHP Build Version
Package Version
The package stratease/salesforcery contains the following files
Loading the files please wait ....