{"id":26265,"date":"2016-07-19T19:37:48","date_gmt":"2016-07-19T17:37:48","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/?p=26265"},"modified":"2017-01-31T13:24:47","modified_gmt":"2017-01-31T11:24:47","slug":"composer-magic","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2016\/07\/19\/composer-magic\/","title":{"rendered":"Composer magic"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p>Now that everyone is super comfortable with composer, I thought I&#8217;d share these two gems which I didn&#8217;t know or think about.<\/p>\n<p><strong>composer info<\/strong><\/p>\n<p>This command lists all of your packages installed with composer. \u00a0This is super handy if you want to include a page in your project, listing all the libraries and versions which are currently installed. \u00a0It also gives you a description of each library as provided by the package.<\/p>\n<p><strong>composer outdated<\/strong><\/p>\n<p>This command lists packages which you are using, which have updates available. \u00a0With this you can have a better understanding of what will happen if you run composer update (depending on your <em>composer.json<\/em> of course).<\/p>\n<p><strong>Update (July 21, 2016)<\/strong>: Guess what? There is even a way to combine the two with one command: <strong>composer info -l\u00a0<\/strong>. \u00a0This will list all the packages, with their versions and descriptions, and with an additional column of the latest version for each package.<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>Now that everyone is super comfortable with composer, I thought I&#8217;d share these two gems which I didn&#8217;t know or think about. composer info This command lists all of your packages installed with composer. \u00a0This is super handy if you want to include a page in your project, listing all the libraries and versions which &hellip; <a href=\"https:\/\/mamchenkov.net\/wordpress\/2016\/07\/19\/composer-magic\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Composer magic<\/span><\/a><\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Composer magic #PHP #WebDev","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[1,18,62,1334],"tags":[3489,38,1330],"keyring_services":[],"class_list":["post-26265","post","type-post","status-publish","format-standard","hentry","category-general","category-programming","category-technology","category-web-work","tag-composer","tag-php","tag-web-development"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":28394,"url":"https:\/\/mamchenkov.net\/wordpress\/2018\/02\/19\/composer-local-packages-for-dummies\/","url_meta":{"origin":26265,"position":0},"title":"Composer Local Packages for Dummies","author":"Leonid Mamchenkov","date":"February 19, 2018","format":false,"excerpt":"Composer (in combination with Packagist) is one technology that has significantly changed the ecosystem of the PHP programming language.\u00a0 Anybody working with PHP in this day and age MUST know how to use composer.\u00a0 However, not everyone does.\u00a0 So here is a nice tutorial on how to get started with\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/02\/composer.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":28916,"url":"https:\/\/mamchenkov.net\/wordpress\/2018\/11\/07\/show-outdated-composer-packages\/","url_meta":{"origin":26265,"position":1},"title":"Show outdated composer packages","author":"Leonid Mamchenkov","date":"November 7, 2018","format":false,"excerpt":"A while back I shared a way to show outdated composer packages.\u00a0 Today, I want to expand on it a little bit.\u00a0 Thanks to this tweet: https:\/\/twitter.com\/waltertamboer\/status\/1059567319725301762 I think it's slightly easy to remember with \"composer show -molD -strict\" (\"old\", \"mold\").\u00a0 Adding this to the test suite is a great\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":24254,"url":"https:\/\/mamchenkov.net\/wordpress\/2015\/05\/28\/cartalyst-framework-agnostic-composer-packages-for-developers\/","url_meta":{"origin":26265,"position":2},"title":"Cartalyst &#8211; framework agnostic composer packages for developers","author":"Leonid Mamchenkov","date":"May 28, 2015","format":"link","excerpt":"Cartalyst - framework agnostic composer packages for developers","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":30254,"url":"https:\/\/mamchenkov.net\/wordpress\/2019\/01\/29\/php-composer-galaxy\/","url_meta":{"origin":26265,"position":3},"title":"PHP : Composer Galaxy","author":"Leonid Mamchenkov","date":"January 29, 2019","format":false,"excerpt":"PHP has one of the greatest, in my opinion, dependency managers - Composer. The tool works mostly with the public projects via the Packagist website (although it also supports private repositories). There are over 200,000 packages available on the Packagist to choose from. However, the stats could be a lot\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/01\/composer.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/01\/composer.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/01\/composer.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/01\/composer.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/01\/composer.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/01\/composer.png?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":28325,"url":"https:\/\/mamchenkov.net\/wordpress\/2018\/01\/10\/17-tips-for-using-composer-efficiently\/","url_meta":{"origin":26265,"position":4},"title":"17 Tips for Using Composer Efficiently","author":"Leonid Mamchenkov","date":"January 10, 2018","format":false,"excerpt":"Martin Hujer has collected 17 tips for using composer efficiently, and then added a few more after receiving the feedback on the blog post.\u00a0 I was familiar with most of these, but there are still a few that are new to me. Tip #7: Run Travis CI builds with different\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26051,"url":"https:\/\/mamchenkov.net\/wordpress\/2016\/04\/21\/adventure-in-composer-private-repositories\/","url_meta":{"origin":26265,"position":5},"title":"Adventure in composer private repositories","author":"Leonid Mamchenkov","date":"April 21, 2016","format":false,"excerpt":"First of all, I would like to take this opportunity and wish composer a happy birthday and many more years to come. \u00a0It's been five years, and the world of PHP has changed so drastically that not many people remember how it used to be before. I would have completely\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/26265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=26265"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/26265\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=26265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=26265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=26265"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=26265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}