Download the PHP package bootiq/cms-api-vendor without Composer
On this page you can find all versions of the php package bootiq/cms-api-vendor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package cms-api-vendor
BootIq - CMS API vendor
Installation
For installation of Boot!Q CMS API vendor use composer:
Configuration
Adapter
For using our adapter, simply use factory or DI in your project and provide needed services and parameters as shown below:
- $responseFactory is service for creating responses. You can use our default factory BootIq\CmsApiVendor\Response\ResponseFactory, or if you want use own response factory, your factory have to implement BootIq\CmsApiVendor\Response\ResponseFactoryInterface.
- $urn is web address of your CMS system for example: 'https://cms.bootiq.io/api/v1/'.
- $apiPublicId is your public id which is used for identifying our customer.
- $apiSecret is key for hashing and authorizing our customer.
For using own adapter, you have to implement AdapterInterface from BootIq\CmsApiVendor\Adapter.
Modification of our adapter
You can change following attribute or services in our adapter, simply by using setter:
- Timeout - Timeout of calling our CMS system (default: 10s).
- Cache - Every request and response are able to cache by setting cache service (PSR-16).
- Logger - Logger can log every call to our CMS system (default: no loging => NullLogger; PSR-3).
Usage
For using our CMS API you can use your own services, or our default services.
PageService
- getPageById - will get page from CMS by its id.
- getPageBySlug - will get page from CMS by its slug.
All versions of cms-api-vendor with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.0
ext-json Version >=1.3.7
ext-hash Version ^1.0
psr/log Version ~1.0
guzzlehttp/guzzle Version ~6.0
psr/simple-cache Version ^1.0
ext-json Version >=1.3.7
ext-hash Version ^1.0
psr/log Version ~1.0
guzzlehttp/guzzle Version ~6.0
psr/simple-cache Version ^1.0
The package bootiq/cms-api-vendor contains the following files
Loading the files please wait ....