Client library for use with PortoSpire Sites
A free (LGPL3) client library for use with PortoSpire Sites to abstract various API usage to enable easier integrations.
Table of Contents
1. Introduction
2. Setup
3. Usage
3.1. Mezzio
3.2. Laminas MVC
3.3. Standalone
1. Introduction
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.
2. Setup
Add to your project’s composer.json
composer require portospire/portospiresitesapiclient
3. Usage
This package is built to support Laminas Mezzio and Laminas MVC as well as be available as a stand alone library.
3.1. Mezzio
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.
3.2. Laminas MVC
There should be no additional steps beyond adding to your project’s composer.json required to begin using the library with Laminas MVC.
3.3. Standalone
There should be no additional steps beyond adding to your project’s composer.json required to begin using the library.