PHPackages                             technote/wordpress-plugin-base - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. technote/wordpress-plugin-base

AbandonedArchivedLibrary

technote/wordpress-plugin-base
==============================

Wordpress Plugin Base

v2.10.0(7y ago)04831GPL-2.0+PHPPHP &gt;=5.6.0

Since Jun 4Pushed 7y ago1 watchersCompare

[ Source](https://github.com/technote-space/wordpress-plugin-base)[ Packagist](https://packagist.org/packages/technote/wordpress-plugin-base)[ Docs](https://github.com/technote-space)[ RSS](/packages/technote-wordpress-plugin-base/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (141)Used By (0)

This repository is no longer maintained.
========================================

[](#this-repository-is-no-longer-maintained)

Moved to

Wordpress plugin base
=====================

[](#wordpress-plugin-base)

Wordpress plugin 開発用のライブラリです。
管理画面やAPIなどの追加や設定値の読み書き等を容易にする機能が用意されています。

要件
==

[](#要件)

- PHP 5.6 以上
- WordPress 3.9.3 以上

手順
==

[](#手順)

プラグインフォルダの作成
------------

[](#プラグインフォルダの作成)

wp-content/plugins フォルダに プラグイン用のフォルダを作成

プラグインファイルの作成
------------

[](#プラグインファイルの作成)

作成したプラグインフォルダに「プラグイン名.php」(例：example.php) を作成
[標準プラグイン情報](https://wpdocs.osdn.jp/%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3%E3%81%AE%E4%BD%9C%E6%88%90#.E6.A8.99.E6.BA.96.E3.83.97.E3.83.A9.E3.82.B0.E3.82.A4.E3.83.B3.E6.83.85.E5.A0.B1)
を参考にプラグインの情報を入力

このライブラリのインストール
--------------

[](#このライブラリのインストール)

composer を使用してインストールします。
作成したプラグインフォルダで以下のコマンドを実行します。

`composer require technote/wordpress-plugin-base`

複数のプラグインでこのライブラリを使用する場合、最新のものが自動的に使用されます。

このライブラリの使用
----------

[](#このライブラリの使用)

作成したプラグインファイルにライブラリを使用する記述を追記します。
プラグインファイルはおおよそ以下のようなものになります。

```
