Setup composer for wordpress on mac

broken image

Someone has also taken it upon themselves to make every plugin available as a composer dependency.Ī dependency manager can be part of your build pipeline and keep 3rd party code out of your source repository. You’re already using other peoples code via plugins, but there’s an entire world of modern PHP libraries available to you via composer.

broken image

Chances are you already know this, so you have a set of go to plugins that you use on every WordPress site you build. Why Use a Dependency Manager with WordPressĬode reuse is a good thing - your clients aren’t paying you to reinvent the wheel, they’re paying you to build them a website or application. This post is going to cover why you should use a dependency manager and how to get started integrating Composer with your WordPress site. Packagist is a composer repository - a place where composer can look up packages (libraries) that are installable. If you’ve done any modern PHP development in the last few years, you’ve probably used it. Composer is a dependency manager for PHP.