goetas-webservices / salesforce-enterprise-client
1.0.0
2018-11-16 10:40 UTC
Requires
- goetas-webservices/soap-client: ^0.2.7
- guzzlehttp/psr7: ^1.3
- php-http/guzzle6-adapter: ^1.0
- php-http/message: ^1.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-17 00:27:58 UTC
README
This project provides a SOAP client for the Salesforce Enterprise Webservice
More info can be found visiting https://www.salesforce.com/hub/sales/enterprise-sales-benefits/
Installing
The recommended way to install goetas-webservices/salesforce-enterprise-client
is using Composer, just run:
composer require goetas-webservices/salesforce-enterprise-client
Features
- Pure PHP, no dependencies on
ext-soap
- Complete IDE type hinting support
- PSR-7 HTTP messaging compatible
- Multi HTTP client (guzzle, buzz, curl, react)
- No WSDL/XSD parsing on production
- Extensible (event listeners support)
Usage
<?php use GoetasWebservices\SoapServices\SoapClient\ClientFactory; use GoetasWebservices\SoapServices\SoapClient\Builder\SoapContainerBuilder; use GoetasWebservices\Client\SalesforceEnterprise\SoapContainer; use GoetasWebservices\Client\SalesforceEnterprise\SoapStubs\Soap; require __DIR__ . '/vendor/autoload.php'; // project initialization $container = new SoapContainer(); // use this when cloning this repository and keeping the directory, comment it when including goetas-webservices/salesforce-enterprise-client via composer $serializer = SoapContainerBuilder::createSerializerBuilderFromContainer($container)->build(); // uncomment this when including goetas-webservices/salesforce-enterprise-client via composer // $serializer = SoapContainerBuilder::createSerializerBuilderFromContainer($container, null, __DIR__ . '/vendor/goetas-webservices/salesforce-enterprise-client')->build(); $metadata = $container->get('goetas_webservices.soap_client.metadata_reader'); $factory = new ClientFactory($metadata, $serializer); /** * @var $client Soap */ $client = $factory->getClient('service.wsdl','Soap', 'SforceService'); // Returns standard information relevant to the current user $result = $client->getUserInfo(/* put here your params */); var_dump($result);
Note
The code in this project is provided under the MIT license. For professional support contact goetas@gmail.com or visit https://www.goetas.com