Linux 软件免费装
Banner图

WP Composer

开发者 sean212
更新时间 2013年7月15日 11:17
捐献地址: 去捐款
PHP版本: 3.3 及以上
WordPress版本: 3.5.1
版权: GPLv2 or later
版权网址: 版权信息

标签

php composer wp-cli assets dependency command line packagist

下载

0.1 0.1.1 0.1.2

详情介绍:

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!

更新日志:

0.1 0.1.1 and 0.1.2