Title: WP Composer
Author: Sean Fisher
Published: <strong>2013 年 6 月 10 日</strong>
Last modified: 2013 年 7 月 15 日

---

搜尋外掛

![](https://ps.w.org/composer/assets/banner-772x250.png?rev=724887)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/composer_588492.svg)

# WP Composer

 由 [Sean Fisher](https://profiles.wordpress.org/sean212/) 開發

[下載](https://downloads.wordpress.org/plugin/composer.0.1.2.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/composer/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/composer/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/composer/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/composer/#developers)

 [技術支援](https://wordpress.org/support/plugin/composer/)

## 外掛說明

Adding Composer dependency management to WP CLI. Allows you to recursivly install/
update composer packages inside of all of your WordPress plugins and themes.

### What is this using?

This package uses a great piece of software called [WP-CLI](http://wp-cli.org/).
It provides a command line interface for WordPress management. We are a plugin providing
Composer management inside of WP CLI.

### What’s Composer?

It’s the greatest thing to happen to the web since GIFs, Drop Shadows and dancing
cats. Composer is a dead simple JSON-based dependency manager for PHP. For more 
information, check out [http://getcomposer.org/](http://getcomposer.org/).

### So this is complete Composer support?

No, not exactly! Sadly, I’m building this out and I’m trying to make some sweet 
WP-CLI and Composer integration. But for now, we only support a few command:

 * install
 * update
 * diagnose
 * help
 * status

If you’d love to help out, please help! Make a pull request and let’s get coding!

### How do I build Composer Management inside of my plugin?

Simple really! You just create a simple `composer.json` file like you would with
any Composer project. From there, wp-composer will interface with each plugin/theme
that has composer support and it will generate the autoload files, too!

Just include something like this inside your main plugin file:

    ```
    require(__DIR__.'/vendor/autoload.php');
    ```

It’s that simple.

## 安裝方式

 1. Upload `/composer/` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Interface with it via wp-cli!

## 常見問題集

  What is WP CLI?

WP-CLI is a set of command-line tools for managing WordPress installations. For 
more, checkout [http://wp-cli.org/](http://wp-cli.org/).

  What’s Composer?

It’s the greatest thing to happen to the web since GIFs, Drop Shadows and dancing
cats. Composer is a dead simple JSON-based dependency manager for PHP. For more 
information, check out [http://getcomposer.org/](http://getcomposer.org/).

## 使用者評論

![](https://secure.gravatar.com/avatar/7f48067d4c365be64171212a461e55fc9ade09278de671902b40b17cf0817c51?
s=60&d=retro&r=g)

### 󠀁[Is the pluggin still supported?](https://wordpress.org/support/topic/is-the-pluggin-still-supported/)󠁿

 [Trinitech](https://profiles.wordpress.org/trinitech/) 2016 年 10 月 17 日

Hi, We would like to use your plugin but noticed that it hasn’t been updated for
over 2 years. Could you please tell us if WP Composer is working with wordpress 
4.6? Thank you

 [ 閱讀全部 2 則使用者評論 ](https://wordpress.org/support/plugin/composer/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈WP Composer〉的開發相關工作。

參與者

 *   [ Sean Fisher ](https://profiles.wordpress.org/sean212/)

[將〈WP Composer〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/composer)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/composer/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/composer/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/composer/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/composer/)。

## 變更記錄

#### 0.1

 * Initial Release
 * Provides support for install/update/help/diagnose/status/about

#### 0.1.1 and 0.1.2

 * Bug fixes
 * Better documentation

## 中繼資料

 *  版本 **0.1.2**
 *  最後更新 **13 年前**
 *  啟用安裝數 **70+**
 *  WordPress 版本需求 ** 3.3 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.5.2**
 *  語言
 * [English (US)](https://wordpress.org/plugins/composer/)
 * 標籤:
 * [composer](https://tw.wordpress.org/plugins/tags/composer/)[dependency](https://tw.wordpress.org/plugins/tags/dependency/)
   [php](https://tw.wordpress.org/plugins/tags/php/)[wp-cli](https://tw.wordpress.org/plugins/tags/wp-cli/)
 *  [進階檢視](https://tw.wordpress.org/plugins/composer/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  2 個 5 星使用者評論     ](https://wordpress.org/support/plugin/composer/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/composer/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/composer/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/composer/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/composer/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/composer/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/composer/reviews/)

## 參與者

 *   [ Sean Fisher ](https://profiles.wordpress.org/sean212/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/composer/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://seanfisher.co/donate)