This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
The Evolution of WordPress Software Development
Aki Björklund @akibjorklund
How do you organize your custom code?
Why?
I bet it is not pretty
WordPress offers no file/folder structure
WordPress offers no autoloading
WordPress offers no unit test framework
WordPress offers no dependency management
WordPress offers no [insert a “professional” software
development tool here]
Probably it shouldn’t either
There aren’t any plugins you can install to get those
There are plugin frameworks and some site frameworks
They are not widespread
…thus not suitable as basis of significant applications
We could roll our own… or not
What can we use then?
Create a solution out of existing widespread technologies
Solution like that is on a stable foundation
I’ll introduce to you our stack
Yours could be different
Bedrock gives us a project structure, but not for your own code
Composer gives us dependency management
Composer PHP autoloader will load files when they are needed
Symfony’s DependencyInjection component lets us write loosely