jalismrs / symfony.bundle.api.salesforce
Adds a service to query Salesforce API
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 490
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.4 || ^8.0
- developerforce/force.com-toolkit-for-php: dev-master
- jalismrs/common.exception: ^1.0.0
- jalismrs/symfony.bundle.api-throttler: ^1.0.8
- symfony/config: ^5.0
- symfony/dependency-injection: ^5.0
- symfony/http-kernel: ^5.0
Requires (Dev)
- composer/package-versions-deprecated: *
- mikey179/vfsstream: *
- phpunit/phpunit: 9.4.2
- roave/security-advisories: dev-master
README
Adds a service to query Salesforce API
Test
phpunit
or vendor/bin/phpunit
coverage reports will be available in var/coverage
Use
use Jalismrs\Symfony\Bundle\JalismrsSalesforceApiBundle\SalesforceApi as SalesforceApiBase; use QueryResult; use SObject; class SalesforceApi extends SalesforceApiBase { public function someApiCallQueryResult(): QueryResult { $query = <<<SOQL SOQL; return $this->query($query); } public function someApiCallNullableSObject(): ?SObject { $query = <<<SOQL SOQL; return $this->queryOne($query); } public function someOtherApiCallSObjectOrFails(): SObject { $query = <<<SOQL SOQL; return $this->queryOneOrFails($query); } }
Configuration
# config/packages/jalismrs_salesforce_api.yaml jalismrs_salesforce_api: password: 'salesforce_password' token: 'salesforce_token' username: 'salesforce_username'