Skip to Content
Documentation
Product Dev
AgentImage BedrockGet Started

What is bedrock

Bedrock is a modern WordPress stack developed by Roots, designed to enhance the development workflow and project structure of WordPress websites. It aims to make WordPress development more manageable, secure, and maintainable by incorporating best practices from the wider web development community.

Features

  • Composer-based dependency management
  • WP-CLI-based command-line interface
  • Environment variables for local development
  • Easy WordPress configuration with .env files
  • Version Control via Git

Who Benefits from Using Bedrock?

Developers who want a more organized and standardized workflow, particularly those familiar with other modern web development tools like Composer. Teams working on larger or long-term WordPress projects where maintaining code quality, collaboration, and a consistent development process is crucial. Agencies looking for a standardized, professional approach to developing WordPress websites that minimizes common issues with updates and deployments.

Professional WordPress project structure

The organization of Bedrock is similar to putting WordPress in its own subdirectory but with some improvements, including renaming wp-content/ to app/.

folderStructure

Requirements

You’ll need a local development environment that supports PHP and MySQL (or MariaDB), which are necessary for running WordPress. Some common tools and environments include:

  • Laragon (which you’re already using)

  • PHP (Version 8.0 or higher): Bedrock requires a relatively modern version of PHP to run smoothly. You’ll also need to install necessary PHP extensions like openssl, mbstring, and json.

  • Composer: This is a key tool in Bedrock’s workflow. Composer is used for dependency management, handling WordPress core, themes, and plugins through composer.json.

  • Git: Version control is crucial for managing your project’s codebase and collaborating with others. Bedrock projects are typically Git repositories.

  • Node.js (Optional but useful): If you’re using task runners like Gulp or Webpack to compile assets like CSS or JavaScript, Node.js is needed.

Bedrock Workflow and Development Process.

Last updated on