Each of our sessions are digitally broadcast live and feature world-class speakers. Each presentation typically has 30-40 minutes set aside for instruction followed by another 15 minutes or so for Questions & Answers at the end.
About This Session
Join us LIVE on Wednesday, June 17, 2015 at 3:00pm EST.
This talk is based on the hypothesis that reusable code is better code. We’ll learn how to use Composer – the PHP dependency manager – in WordPress plugin development to facilitate sharing code between projects.
If you’ve been creating WordPress plugins for any amount of time odds are pretty high that you’ve encountered reusing code between projects, both while building and maintaining your code. Composer is a tool that has been designed to help reduce and, in some cases, completely eliminate this friction.
Tune in as Josh Pollock teaches us how using Composer within our WordPress Plugins can not only help us share useful code between our projects, and use other people’s code, but how it can lead to more modern development practices in our plugins. Composer’s autoloader, one of its most useful features, is an easy way to start writing smaller, more maintainable classes.
We will cover how to move repetitive patterns and classes you use in all of your plugins into Composer packages. This will promote easy sharing between plugins of code. More importantly, it makes sharing bug fixes and improvements in one plugin to all of your plugins. Also, we will cover how to intelligently use other people’s code in your plugins, with an easy way to track upstream changes and challenges in distributing WordPress plugins that use composer.
- An introduction to Composer.
- Why using Composer will lead to better, more maintainable code.
- Plugin architecture with Composer.
- Understanding and Using the Composer Autoloader.
- Using third-party Composer packages in your plugin.
- Creating Composer packages for your plugin.
- Maintaining, and testing your Packages.
- Getting started with a practical example.
About Josh Pollock
Josh, is the owner of and a developer for CalderaWP makers of fine WordPress plugins including URL Builder, the visual editor for WordPress permalinks, and Caldera Forms, a drag and drop, responsive form builder. He is also a weekly contributor to Torque Magazine, and the community manager and contributing developer for Pods.