aircms / aircms-php
There is no license information available for the latest version (dev-main) of this package.
Aircms PHP API client
dev-main
2022-02-12 01:01 UTC
Requires
- php: ^7.3|^8.0
- guzzlehttp/guzzle: ^7.3
This package is auto-updated.
Last update: 2024-11-12 07:15:34 UTC
README
Aircms PHP API client
Requirements
- PHP 7.3 or higher
Documentation
Installation
composer require aircms/aircms-php
Get started
use Aircms\Aircms; $aircms = new Aircms; $aircms->setApiKey('<api_key>');
Get all pages
$aircms->getPages(); // [ // [ // "name" => "startpage" // "uuid" => "948a3718-a454-42df-9d87-a0d5214da6a0" // "created_at" => "2021-10-02T20:25:07.000000Z" // "updated_at" => "2021-10-11T15:41:49.000000Z" // "cached_at" => "2021-10-11T15:41:49.000000Z" // "cache_disabled" => false // ] // ]
Get page info
$aircms->getPage('startpage'); // [ // "name" => "startpage" // "uuid" => "948a3718-a454-42df-9d87-a0d5214da6a0" // "created_at" => "2021-10-02T20:25:07.000000Z" // "updated_at" => "2021-10-11T15:41:49.000000Z" // "cached_at" => "2021-10-11T15:41:49.000000Z" // "cache_disabled" => false // ]
Get page fields
$aircms->getPageFields('startpage'); // [ // 'sv' => [ // 'hero_text' => 'Välkommen' // ] // ]