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

WP 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. 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/.

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/.

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/.

評價

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個評價

貢獻者及開發者

“WP Composer” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 WP Composer 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

0.1

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

0.1.1 and 0.1.2

  • Bug fixes
  • Better documentation