Bedrock Boost: Timber & WP Steroids for Developers

Bedrock is a modern WordPress stack that helps you get started with the best development tools and project structure.

This is a modified version using Timber and WP Steroid

Features

  • Better folder structure
  • YML configuration
  • Dependency management with Composer
  • Easy WordPress configuration with environment specific files
  • Environment variables with Dotenv
  • Autoloader for mu-plugins (use regular plugins as mu-plugins)
  • Enhanced security (separated web root and secure passwords with wp-password-bcrypt)

Requirements

  • PHP >= 7.4
  • Composer - Install

Installation

  1. Update environment variables in the .env file. Wrap values that may contain non-alphanumeric characters with quotes, or they may be incorrectly parsed.
  • Database variables
    • DB_NAME - Database name
    • DB_USER - Database user
    • DB_PASSWORD - Database password
    • DB_HOST - Database host
    • Optionally, you can define DATABASE_URL for using a DSN instead of using the variables above (e.g. mysql://user:password@127.0.0.1:3306/db_name)
  • WP_ENV - Set to environment (development, staging, production)
  • WP_HOME - Full URL to WordPress home (https://example.com)
  • ACF_PRO_KEY - Your ACF Licence key
  • AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY, NONCE_KEY, AUTH_SALT, SECURE_AUTH_SALT, LOGGED_IN_SALT, NONCE_SALT
    • Generate with WordPress salts generator
  1. Install vendor
  2. Set the document root on your webserver to Bedrock's public folder: /path/to/site/public/
  3. Access WordPress admin at https://example.com/edition/wp-admin/

Configuration

Edit /config/app.yml to edit WordPress configuration ( custom post type, custom taxonomy and so much more )

Theming

  1. Install vendor
  2. Edit twig files in /templates
  3. Edit site configuration in /src/Site.php
  4. Edit page context in /src/Controller
  5. Run dev server

Building enterprise solutions with WordPress ?

You may want to try the WordPress Bundle for Symfony.

Platform.sh

This project is ready to be deployed on Platform.sh

Deploy

$ npm run dev-server
$ npm install
$ composer install

Download Details:

Author: jerome-barbato

Official Github: https://github.com/jerome-barbato/wp-steroids-demo 

License

#wordpress 

Bedrock Boost: Timber & WP Steroids for Developers
1.55 GEEK