silverback / skeleton
WordPress boilerplate with modern development tools, easier configuration, and an improved folder structure
Requires
- php: >=7.2
- composer/installers: ^1.7
- google/cloud-error-reporting: ^0.14.5
- monolog/monolog: ^1.23
- oscarotero/env: ^1.2.0
- roots/wordpress: ^5.3.0
- roots/wp-config: ~1.0.0
- roots/wp-password-bcrypt: ~1.0.0
- silverback/wp-helpers: ^5.2.0
- silverbackstudio/wp-log: ^1.0
- vlucas/phpdotenv: ^3.4.0
Requires (Dev)
Suggests
- silverback/wp-bootstrap: Installs some common Wordpress plugins
- dev-master
- v2.4.4
- v2.4.3
- v2.4.2
- v2.4.1
- v2.4.0
- 2.3.1
- 2.3.0
- 2.2.0
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.1
- 2.0.0
- 1.8.0
- 1.7.9
- 1.7.8
- 1.7.7
- 1.7.6
- 1.7.5
- 1.7.4
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.7
- 1.4.6
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.7
- 1.3.6
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.0
- dev-issues/multisite-plugins-cors
- dev-serve-static-files
- dev-appengine
- dev-dev-container
- dev-standard
- dev-jetpack-modes
- dev-travis-tests
This package is not auto-updated.
Last update: 2024-10-27 05:30:53 UTC
README
This bolerplate is based on Bedrock, a modern WordPress stack that helps you get started with the best development tools and project structure.
Features
- Better folder structure
- 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 roots.io's wp-password-bcrypt)
Requirements
- PHP >= 7.2
- Composer - Install
Installation
- Create a new project:
$ composer create-project silverback/wp-website
- Update environment variables in the
.env
file:
- Database variables
DB_NAME
- Database nameDB_USER
- Database userDB_PASSWORD
- Database passwordDB_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://localhost)WP_SITEURL
- Full URL to WordPress including/wp
subdirectory (https://localhost/wp)AUTH_KEY
,SECURE_AUTH_KEY
,LOGGED_IN_KEY
,NONCE_KEY
,AUTH_SALT
,SECURE_AUTH_SALT
,LOGGED_IN_SALT
,NONCE_SALT
- Generate with wp-cli-dotenv-command
- Generate with Roots.io WordPress salts generator
- Add theme(s) via
composer require
- Set the document root on your webserver to app
web
folder:/path/to/site/web/
- Access WordPress admin at
https://localhost/wp/wp-admin/
Development Environment with Docker
This boliperplate contains a pre-configured Docker environment with dedicated WP and MySQL containers.
You can find a Visual Studio Code development guide in the .devcontainer folder (recommended) or you can manually launch it via docker-compose.yaml
file.
Google App Engine
This boilerlate is made to be deployed to Google App Engine. Please read the GAE_DEPLOY guide.
Bedrock
Bedrock documentation is available at https://roots.io/bedrock/docs/.