devuri / wp-app-skeleton
A base WordPress project to create web applications using environment variables.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- devuri/wp-env-config: dev-master
- wpackagist-plugin/application-passwords-manager: *
- wpackagist-plugin/better-search-replace: *
- wpackagist-plugin/classic-editor: *
- wpackagist-plugin/custom-post-type-ui: *
- wpackagist-plugin/disable-comments: *
- wpackagist-plugin/disable-dashboard-widgets: *
- wpackagist-plugin/disable-emojis: *
- wpackagist-plugin/disable-gutenberg: *
- wpackagist-plugin/disable-json-api: *
- wpackagist-plugin/email-log: *
- wpackagist-plugin/membership-lock: *
- wpackagist-plugin/query-monitor: *
- wpackagist-plugin/snitch: *
- wpackagist-plugin/stream: *
- wpackagist-plugin/sucuri-scanner: *
- wpackagist-plugin/wordfence: *
- wpackagist-plugin/worker: *
- wpackagist-plugin/wp-auto-updates: *
- wpackagist-plugin/wp-mail-smtp: *
- wpackagist-theme/hello-elementor: *
- wpackagist-theme/twentytwentythree: *
This package is auto-updated.
Last update: 2024-11-30 01:57:06 UTC
README
This is a lightweight WordPress skeleton for your next WordPress web application. It aims to provide a clean and organized structure for managing WordPress projects, making it easier to develop, deploy, and maintain WordPress websites.
Uses wp-env-app
Environment Variables Setup
To get started, create a .env
file in the root directory of your project.
In this file, define the environment variables you wish to use as configuration constants, update the database credentials and other settings as needed.
WP_HOME='https://example.com' WP_SITEURL="${WP_HOME}" WP_ENVIRONMENT_TYPE='production' DEVELOPER_ADMIN='0' MEMORY_LIMIT='256M' MAX_MEMORY_LIMIT='256M' DB_NAME=wp_dbName DB_USER=root DB_PASSWORD= DB_HOST=localhost DB_PREFIX=wp_
Full list of Environment Variables
Folder Structure
Here's an overview of the directory structure used:
├── public # Web server root directory
│ ├── app # WordPress core files (excluded from version control)
│ │ ├── mu-plugins # Must-use plugins directory
│ │ ├── plugins # WordPress plugins directory
│ │ ├── uploads # WordPress uploads directory
│ │ ├── templates # Custom themes directory
│ │ └── themes # WordPress themes directory
│ ├── wp # WordPress core files (excluded from version control)
│ ├── .htaccess # Web server configuration file
│ ├── index.php # WordPress entry point
│ └── wp-config.php # WordPress configuration file
├── pubkey # Public key used for encryption or verification purposes
│ └── samplekey.pub # Example key b75b666f-ac11-4342-b001-d2546f1d3a5b.pub
├── storage # Storage directory for backups, cache, and logs
│ ├── cache # Cache directory
│ └── logs # Logs directory
│ └── wp-errors # WordPress error logs
├── vendor # Composer dependencies directory
├── .env # Environment configuration file
├── app.php # Application configuration file
├── bootstrap.php # Bootstrap file
├── composer.json # Composer configuration file
└── config.php # Project configuration file overrides framework constants.