Download the PHP package avadolearning/bls-sdk-php without Composer
On this page you can find all versions of the php package avadolearning/bls-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download avadolearning/bls-sdk-php
More information about avadolearning/bls-sdk-php
Files in avadolearning/bls-sdk-php
Package bls-sdk-php
Short Description A library for integrating your PHP application with AVADO's Business Logic Services API.
License BSD-3-Clause
Homepage https://github.com/AVADOLearning/bls-sdk-php
Informations about the package bls-sdk-php
BLS SDK for PHP
A library for integrating your PHP application with AVADO's Business Logic Services API.
Installation
Support for different installation methods is still in the works. Reach out to us for installation help if your use case doesn't allow you to follow the below guidance.
With Composer and Packagist (recommended)
We have an example of
how to use the SDK in this configuration, but it's fairly straightforward --
just add the following line to the require
section of your composer.json
:
Then ensure the dependency is installed into your vendor
directory:
Using your own autoloader
We don't (yet?) support this configuration.
Usage
First obtain an instance of the SoapClientFactory
. The factory handles
passing parameters to each of the client classes:
Then use the factory to obtain a client for a given service:
You can optionally pass additional SoapClient
options to getInstance()
to
override those specified in the factory. To allow PHP to cache the WSDL file on
the disk, you might instantiate the SalesLogix client as follows:
Either way, $client
will now be an instance of
AvadoLearning\BusinessLogicServices\SalesLogixService\SalesLogix
, and it will
be possible to call methods like . Examples can be found in the
/test/unit
directory of this repository.
Development
The following documentation is for maintainers of the plugin.
Installing development dependencies
Dependencies are managed with Composer:
Updating the entities
Assuming Wsdl2PhpGenerator
has been installed as a Composer development
dependency:
Testing
First, configure the project's /etc/config.php
file with your credentials:
Then, assuming PHPUnit has been installed as a Composer development dependency:
If you receive no output, it's likely that there's something wrong with your environment. Try running PHPUnit with PHP's error output enabled: