{"id":28394,"date":"2018-02-19T13:25:06","date_gmt":"2018-02-19T11:25:06","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/?p=28394"},"modified":"2018-02-19T13:25:06","modified_gmt":"2018-02-19T11:25:06","slug":"composer-local-packages-for-dummies","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2018\/02\/19\/composer-local-packages-for-dummies\/","title":{"rendered":"Composer Local Packages for Dummies"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p><a href=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/02\/composer.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"28395\" data-permalink=\"https:\/\/mamchenkov.net\/wordpress\/2018\/02\/19\/composer-local-packages-for-dummies\/composer\/\" data-orig-file=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/02\/composer.png?fit=290%2C356&amp;ssl=1\" data-orig-size=\"290,356\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"composer\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/02\/composer.png?fit=290%2C356&amp;ssl=1\" class=\"aligncenter size-full wp-image-28395\" src=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/02\/composer.png?resize=290%2C356&#038;ssl=1\" alt=\"\" width=\"290\" height=\"356\" \/><\/a><\/p>\n<p><a href=\"https:\/\/getcomposer.org\/\">Composer<\/a> (in combination with <a href=\"https:\/\/packagist.org\/\">Packagist<\/a>) is one technology that has significantly changed the ecosystem of the PHP programming language.\u00a0 Anybody working with PHP in this day and age <strong>MUST<\/strong> know how to use composer.\u00a0 However, not everyone does.\u00a0 So here is a nice tutorial on how to get started with Composer if you already have a large legacy application that you want to split into packages and use composer to manage them &#8211;\u00a0<a href=\"https:\/\/www.tomasvotruba.cz\/blog\/2017\/12\/25\/composer-local-packages-for-dummies\/\">Composer Local Packages for Dummies<\/a>.<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>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 Composer if you already have &hellip; <a href=\"https:\/\/mamchenkov.net\/wordpress\/2018\/02\/19\/composer-local-packages-for-dummies\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Composer Local Packages for Dummies<\/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 Local Packages for Dummies #WebDev #PHP #composer","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-28394","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":30254,"url":"https:\/\/mamchenkov.net\/wordpress\/2019\/01\/29\/php-composer-galaxy\/","url_meta":{"origin":28394,"position":0},"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":24254,"url":"https:\/\/mamchenkov.net\/wordpress\/2015\/05\/28\/cartalyst-framework-agnostic-composer-packages-for-developers\/","url_meta":{"origin":28394,"position":1},"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":28916,"url":"https:\/\/mamchenkov.net\/wordpress\/2018\/11\/07\/show-outdated-composer-packages\/","url_meta":{"origin":28394,"position":2},"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":26265,"url":"https:\/\/mamchenkov.net\/wordpress\/2016\/07\/19\/composer-magic\/","url_meta":{"origin":28394,"position":3},"title":"Composer magic","author":"Leonid Mamchenkov","date":"July 19, 2016","format":false,"excerpt":"Now that everyone is super comfortable with composer, I thought I'd share these two gems which I didn'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\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":21721,"url":"https:\/\/mamchenkov.net\/wordpress\/2014\/04\/29\/composer-for-php-dependency-management\/","url_meta":{"origin":28394,"position":4},"title":"Composer for PHP dependency management","author":"Leonid Mamchenkov","date":"April 29, 2014","format":"status","excerpt":"I am reading about Composer. \u00a0And the more I read, the more I like it.","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":28325,"url":"https:\/\/mamchenkov.net\/wordpress\/2018\/01\/10\/17-tips-for-using-composer-efficiently\/","url_meta":{"origin":28394,"position":5},"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":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/28394","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=28394"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/28394\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=28394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=28394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=28394"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=28394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}