justcoded / wordpress-starter
WordPress boilerplate with modern development tools, easier configuration, and an improved folder structure
Installs: 470
Dependents: 0
Suggesters: 0
Security: 0
Stars: 35
Watchers: 5
Forks: 25
Open Issues: 3
Type:project
Requires
- php: >=7.0
- acf/advanced-custom-fields-pro: dev-master
- composer/installers: ^1.8
- johnpbloch/wordpress: ^5.5.0
- justcoded/wordpress-composer-scripts: ~1.2
- justcoded/wordpress-theme-boilerplate: ^3.0
- justcoded/wordpress-theme-framework: ^3.0
- vlucas/phpdotenv: ^3.3.2
- wpackagist-plugin/add-to-any: *
- wpackagist-plugin/autoptimize: *
- wpackagist-plugin/contact-form-7: *
- wpackagist-plugin/duplicate-post: *
- wpackagist-plugin/just-image-optimizer: *
- wpackagist-plugin/just-responsive-images: *
- wpackagist-plugin/just-tinymce-styles: *
- wpackagist-plugin/mce-table-buttons: *
- wpackagist-plugin/seo-optimized-images: *
- wpackagist-plugin/wordpress-seo: *
- wpackagist-plugin/wp-mail-smtp: *
- wpackagist-plugin/wp-super-cache: *
- wpackagist-theme/twentyseventeen: *
Requires (Dev)
- justcoded/phpcodesniffer: dev-master
- wpackagist-plugin/fakerpress: ~0.5.0
- wpackagist-plugin/wordpress-importer: *
This package is auto-updated.
Last update: 2024-11-14 21:40:07 UTC
README
WordPress Project Template by JustCoded
WordPress Project Template is a skeleton WordPress site with modern development tools, easier configuration, improved folder structure and latest security best practices.
Better project structure
The organization of skeleton is similar to putting WordPress core files in its own subdirectory,
wp-content
stays the same.
Dependency management with Composer
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.
Easy WordPress configuration
Environment specific configuration files and environment variables with Dotenv.
Enhanced security
- Deny access to non-web files with server directives (with
.htaccess
files). - Deny PHP scripts execution inside
wp-content/uploads
folder. - Deny browsing the directory files list.
- Production & Staging environments have a restriction to update files from admin panel (only Media is allowed).
- Command-line scripts for generating wp-admin HTTP Authorization files.
Quick start
Requirements
Installation
- Create a new project in a new folder for your site:
composer create-project justcoded/wordpress-starter your-project-folder-name
- Set important environment variables in
.env
file:
DB_NAME
- Database nameDB_USER
- Database userDB_PASSWORD
- Database passwordDB_HOST
- Database hostWP_HOME
- Full URL to WordPress home (http://example.com)
-
Run WordPress install as usual by accessing your site at
http://example.com/
-
Enjoy!
Composer helpers
composer wp:theme
generate new theme based on our Theme Boilerplatecomposer wp:secure
generate new HTTP password for wp-admin folder
Contributing
Contributions are welcome from everyone.