
This document introduces how to use microCMS with PHP.
You can find the installation method for the SDK here.
$ composer init
$ composer require microcmsio/microcms-php-sdk
Here is an example of the initialization code.
<?php
require_once('vendor/autoload.php');
$client = new \Microcms\Client(
"YOUR_DOMAIN", // YOUR_DOMAIN is the XXXX part of https://XXXX.microcms.io
"YOUR_API_KEY" // API Key
);The microCMS PHP SDK is distributed via Composer (Packagist).
Additionally, the source code is open source, and anyone can create Issues or Pull Requests.
The PHP SDK is under a maintenance policy (Maintenance) aimed at maintaining its basic functionality for existing users. For details about the SDK maintenance policy, see “SDK Maintenance Policy” on the “Limitations and Notes” page.