Local Bedrock Development with Local by Flywheel
Learn how to configure and use Bedrock with Local by Flywheel for your local development environment.
# Create a new Bedrock project
$ composer create-project roots/bedrock
# Add plugins with Composer
$ composer require wpackagist-plugin/safe-redirect-manager
$ composer require wpackagist-plugin/simple-page-ordering
$ composer require wpackagist-plugin/woocommerce
Read the docs
The organization of Bedrock is similar to putting WordPress in its own subdirectory but with some improvements, including renaming wp-content/
to app/
.
├── composer.json
├── config
│ ├── application.php
│ └── environments
│ ├── development.php
│ ├── staging.php
│ └── production.php
├── vendor
└── web
├── app
│ ├── mu-plugins
│ ├── plugins
│ ├── themes
│ └── uploads
├── wp-config.php
├── index.php
└── wp
Manage your WordPress install and plugins with Composer, a PHP dependency manager. Composer will make development more reliable, help with team collaboration, and it helps maintain a better Git repository.
Environment specific configuration files and environment variables with Dotenv.
Isolated web root to limit access to non-web files and more secure passwords through wp-password-bcrypt.
Bedrock professionalizes WordPress development and should be the default starting point for any WordPress site.
I swore to never touch WordPress again until I found Bedrock :) Composer and git all the things!
Bedrock is like the bridge between WordPress and the rest of PHP
Bedrock is doing a huge service to the WordPress community, and I can see it being adopted as the standard for WordPress development. Hopefully as more people adopt it, the developer community at large will view WordPress sites on similar footing as more “professional” platforms.
Bedrock gives you a better structure for your WordPress installation with modern development tools.
Help support our open-source development efforts
Join over 7,000 subscribers on our newsletter to get the latest Roots updates, along with occasional tips on building better WordPress sites.
Looking for WordPress plugin recommendations, the newest modern WordPress projects, and general web development tips and articles?
“Easily the best WordPress email I get.” Colin OBrien