{"id":23791,"date":"2013-06-10T13:02:34","date_gmt":"2013-06-10T13:02:34","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/composer\/"},"modified":"2013-07-15T03:14:52","modified_gmt":"2013-07-15T03:14:52","slug":"composer","status":"publish","type":"plugin","link":"https:\/\/azb.wordpress.org\/plugins\/composer\/","author":5853094,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.1.2","stable_tag":"0.1.2","tested":"3.5.2","requires":"3.3","requires_php":"","requires_plugins":"","header_name":"WordPress Composer","header_author":"Sean Fisher","header_description":"","assets_banners_color":"588492","last_updated":"2013-07-15 03:14:52","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/seanfisher.co\/donate","header_plugin_uri":"http:\/\/seanfisher.co\/wp-composer\/","header_author_uri":"http:\/\/seanfisher.co\/","rating":5,"author_block_rating":0,"active_installs":70,"downloads":9255,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"724887","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.1.1","0.1.2"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[19241,1082,19240,662,4574],"plugin_category":[],"plugin_contributors":[78228],"plugin_business_model":[],"class_list":["post-23791","plugin","type-plugin","status-publish","hentry","plugin_tags-command-line","plugin_tags-composer","plugin_tags-dependency","plugin_tags-php","plugin_tags-wp-cli","plugin_contributors-sean212","plugin_committers-sean212"],"banners":{"banner":"https:\/\/ps.w.org\/composer\/assets\/banner-772x250.png?rev=724887","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/composer_588492.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Adding Composer dependency management to WP CLI. Allows you to recursivly install\/update composer packages inside of all of your WordPress plugins and themes.<\/p>\n\n<h3>What is this using?<\/h3>\n\n<p>This package uses a great piece of software called <a href=\"http:\/\/wp-cli.org\/\">WP-CLI<\/a>. It provides a command line interface for WordPress management. We are a plugin providing Composer management inside of WP CLI.<\/p>\n\n<h3>What's Composer?<\/h3>\n\n<p>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 <a href=\"http:\/\/getcomposer.org\/\">http:\/\/getcomposer.org\/<\/a>.<\/p>\n\n<h3>So this is complete Composer support?<\/h3>\n\n<p>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:<\/p>\n\n<ul>\n<li>install<\/li>\n<li>update<\/li>\n<li>diagnose<\/li>\n<li>help<\/li>\n<li>status<\/li>\n<\/ul>\n\n<p>If you'd love to help out, please help! Make a pull request and let's get coding!<\/p>\n\n<h3>How do I build Composer Management inside of my plugin?<\/h3>\n\n<p>Simple really! You just create a simple <code>composer.json<\/code> 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!<\/p>\n\n<p>Just include something like this inside your main plugin file:<\/p>\n\n<pre><code>require(__DIR__.'\/vendor\/autoload.php');\n<\/code><\/pre>\n\n<p>It's that simple.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>\/composer\/<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Interface with it via wp-cli!<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>What is WP CLI?<\/dt>\n<dd><p>WP-CLI is a set of command-line tools for managing WordPress installations. For more, checkout <a href=\"http:\/\/wp-cli.org\/\">http:\/\/wp-cli.org\/<\/a>.<\/p><\/dd>\n<dt>What's Composer?<\/dt>\n<dd><p>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 <a href=\"http:\/\/getcomposer.org\/\">http:\/\/getcomposer.org\/<\/a>.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1<\/h4>\n\n<ul>\n<li>Initial Release<\/li>\n<li>Provides support for install\/update\/help\/diagnose\/status\/about<\/li>\n<\/ul>\n\n<h4>0.1.1 and 0.1.2<\/h4>\n\n<ul>\n<li>Bug fixes<\/li>\n<li>Better documentation<\/li>\n<\/ul>","raw_excerpt":"Adding Composer dependency management to WP CLI.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/23791","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=23791"}],"author":[{"embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/sean212"}],"wp:attachment":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=23791"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=23791"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=23791"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=23791"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=23791"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=23791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}