A free (LGPL3) client library for use with PortoSpire Sites to abstract various API usage to enable easier integrations.
1. Introduction
2. Setup
3. Usage
3.1. Mezzio
3.2. Laminas MVC
3.3. Standalone
This package provides a PortoSpire Sites client to abstract API calls and form submissions to provide and receive data from a site hosted in PortoSpire's services.
Add to your project's composer.json
composer require portospire/portospiresitesapiclient
This package is built to support Laminas Mezzio and Laminas MVC as well as be available as a stand alone library.
Add the ConfigProvider class to the config aggregator (typically found in config/config.php)
$aggregator = new ConfigAggregator([
...
\PortoSpire\PSFrameworkClient\ConfigProvider::class,
...
Then use the client in your handlers/middleware as needed for your use cases.
There should be no additional steps beyond adding to your project's composer.json required to begin using the library with Laminas MVC.
There should be no additional steps beyond adding to your project's composer.json required to begin using the library.