From a77c457499dd8df4221b7f0bcc33fdcbe7a6ffdc Mon Sep 17 00:00:00 2001 From: kan_shimizu Date: Tue, 14 Jul 2026 11:15:04 +0900 Subject: [PATCH 1/2] =?UTF-8?q?README=E3=82=92=E6=97=A5=E6=9C=AC=E8=AA=9E?= =?UTF-8?q?=E5=8C=96=E3=81=97=E4=BF=9D=E5=AE=88=E6=96=B9=E9=87=9D=E3=82=92?= =?UTF-8?q?=E8=BF=BD=E8=A8=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 64 ++++++++++++++++++++++++++++++------------------------- 1 file changed, 35 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 765e204..89d85e3 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,26 @@ # microCMS PHP SDK -[microCMS](https://document.microcms.io/manual/api-request) PHP SDK. +[microCMS](https://document.microcms.io/manual/api-request) のPHP SDKです。 -## Tutorial +## 保守方針 -See [official tutorial](https://document.microcms.io/tutorial/php/php-top). +このSDKの現在の保守レベルは `Maintenance` です。 -## Installation +詳細は[SDKの保守方針](https://document.microcms.io/manual/limitations#hc2b0bc6659)をご覧ください。 + +## チュートリアル + +[公式チュートリアル](https://document.microcms.io/tutorial/php/php-top)をご覧ください。 + +## インストール ```sh $ composer require microcmsio/microcms-php-sdk ``` -## Usage +## 使い方 -### Import +### インポート ```php list("endpoint"); echo $list->contents[0]->title; ``` -### Get content list with parameters +### パラメータを指定したコンテンツ一覧の取得 ```php $list = $client->list("endpoint", [ @@ -48,7 +54,7 @@ $list = $client->list("endpoint", [ "limit" => 10, "offset" => 1, "orders" => ["createdAt", "-updatedAt"], - "q" => "PHP", + "q" => "こんにちは", "fields" => ["id", "title"], "filters" => "title[contains]microCMS", "depth" => 1 @@ -56,14 +62,14 @@ $list = $client->list("endpoint", [ echo $list->contents[0]->title; ``` -### Get single content +### 単一コンテンツの取得 ```php $object = $client->get("endpoint", "my-content-id"); echo $object->title; ``` -### Get single content with parameters +### パラメータを指定した単一コンテンツの取得 ```php $object = $client->get("endpoint", "my-content-id", [ @@ -74,74 +80,74 @@ $object = $client->get("endpoint", "my-content-id", [ echo $object->title; ``` -### Get object form content +### オブジェクト形式のコンテンツの取得 ```php $object = $client->get("endpoint"); echo $object->title; ``` -### Create content +### コンテンツの作成 ```php $createResult = $client->create( "endpoint", [ - "title" => "Hello, microCMS!", - "contents" => "Awesome contents..." + "title" => "コンテンツ", + "contents" => "こんにちは、コンテンツ!" ] ); echo $createResult->id; ``` -### Create content with specified ID +### IDを指定したコンテンツの作成 ```php $createResult = $client->create( "endpoint", [ "id" => "new-my-content-id", - "title" => "Hello, microCMS!", - "contents" => "Awesome contents..." + "title" => "マイコンテンツ", + "contents" => "こんにちは、マイコンテンツ!" ] ); echo $createResult->id; ``` -### Create draft content +### 下書きコンテンツの作成 ```php $createResult = $client->create( "endpoint", [ - "title" => "Hello, microCMS!", - "contents" => "Awesome contents..." + "title" => "下書きコンテンツ", + "contents" => "こんにちは、下書きコンテンツ!" ], [ "status" => "draft" ] ); echo $createResult->id; ``` -### Update content +### コンテンツの更新 ```php $updateResult = $client->update("endpoint", [ "id" => "new-my-content-id", - "title" => "Hello, microCMS PHP SDK!" + "title" => "こんにちは、microCMS PHP SDK!" ]); echo $updateResult->id; ``` -### Update object form content +### オブジェクト形式のコンテンツの更新 ```php $updateResult = $client->update("endpoint", [ - "title" => "Hello, microCMS PHP SDK!" + "title" => "こんにちは、microCMS PHP SDK!" ]); echo $updateResult->id; ``` -### Delete content +### コンテンツの削除 ```php $client->delete("endpoint", "new-my-content-id"); From 373c4384cb410192cb064625ae3836d0e392f9d3 Mon Sep 17 00:00:00 2001 From: kan_shimizu Date: Tue, 14 Jul 2026 13:14:30 +0900 Subject: [PATCH 2/2] =?UTF-8?q?microCMS=E3=81=AE=E3=83=AA=E3=83=B3?= =?UTF-8?q?=E3=82=AF=E5=85=88=E3=82=92=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 89d85e3..897a43f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # microCMS PHP SDK -[microCMS](https://document.microcms.io/manual/api-request) のPHP SDKです。 +[microCMS](https://document.microcms.io/) のPHP SDKです。 ## 保守方針