Bedrock is an open source project made by Roots that you use as base for WordPress builds. It is a modern development workflow for WordPress that helps to improve security, performance, and scalability of your WordPress site. It provides a better folder structure, improved security, and helps you use modern development tools like Composer and NPM.It uses composer to install and manage WordPress plugins, allowing for easier updates.
Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) your theme for you. It is used by Bedrock to manage WordPress core, plugins, and themes.
What are the benefits of using Bedrock for WordPress?
The benefits of Bedrock for WordPress include:
Improved security: Bedrock provides a better folder structure and improved security. It creates a separation between the application code and the WordPress core, which makes it harder for attackers to gain access to sensitive files. Additionally the config is not stored in the web root meaning deployment to new servers is simpler and there is no risk of accidentally editing production databases when using new development environments.
Better performance: Bedrock can help improve the performance of your WordPress site by using modern development tools like Composer and NPM.
Easier scalability: Bedrock makes it easier to scale your WordPress site by providing a better folder structure and making it easier to manage dependencies.
Easier development: Bedrock makes it easier to develop WordPress sites by providing a modern development workflow for WordPress.
Separate configs per environment: Bedrock makes it possible to have development, staging and production configs, so certain settings can be enabled on production, but disabled on development environments, resulting in more efficient development, plus the production site will become faster and more streamlined.
Version control: Version controlling WordPress with Bedrock is much more efficient so the entire directory can be included while still remaining small, as plugins and core WordPress files are not included in version control and are instead managed via composer.
What are the cons of Bedrock for WordPress?
The main disadvantage of Bedrock is that it can be difficult to set up and configure. It requires a certain level of technical understanding and knowledge to get the most out of it. Additionally, it can be difficult to integrate with existing WordPress sites as it requires a different folder structure. Finally, it can be time-consuming to set up, as it requires a certain level of expertise.
Bedrock is the perfect choice for developers who want to take full advantage of modern development tools and techniques. Get in touch with us to find out more.