microCMS

Integration with PHP



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
);


SDK

The microCMS PHP SDK is distributed via Composer (Packagist).

Additionally, the source code is open source, and anyone can create Issues or Pull Requests.

Contents