Download the PHP package spinbits/baselinker-sdk without Composer
On this page you can find all versions of the php package spinbits/baselinker-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download spinbits/baselinker-sdk
More information about spinbits/baselinker-sdk
Files in spinbits/baselinker-sdk
Package baselinker-sdk
Short Description PHP integration with Baselinker https://api.baselinker.com/
License MIT
Homepage https://github.com/spinbits/baselinker-sdk
Informations about the package baselinker-sdk
Spinbits.io Baselinker Sdk
Need help ?
Drop us a message [email protected]
Description
This package is implementation of communication with BaseLinker Connector ("integration file"). For further details please refer to https://connectors.baselinker.com/exec/docs/index.php .
This package provides only core action handler. It's ready to be extended with your own ecommerce (Sylius, or other php-based products) action handlers.
For integration with Sylius, please go to https://github.com/spinbits/sylius-baselinker-plugin
Install
Via Composer
Usage
In order to use this package, instantiate your Baselinker handler:
Register example handlers with $actionName from BaseLinker API:
You can register handler with some depending parameter also:
Before your handle request you should create Input
object which receives array passed in POST request as a parameter.
Let's assumer that $request is for example Symfony\Component\HttpFoundation\Request
object. We can use:
In order to process incoming request you can just run:
The result to return controller response is:
Example handlers, common for all implementations can be found in src\Handler\Common
.
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.