Download the PHP package rbfraphael/wp-composer without Composer
On this page you can find all versions of the php package rbfraphael/wp-composer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package wp-composer
Wordpress Boilerplate with Composer
Git-ready version of Composer-based Wordpress. Very useful for development, easy deployment and CI/CD configurations. With a compact, easy-to-understand and easy-to-maintain file structure.
0. Requirements
- PHP 7.2+ installed on your machine
- command enabled on terminal/cmd (PHP's path added to your PATH env. var)
1. Installing
Just clone this repository and run inside this folder. After that, jump to next step.
2. Configure
The configuration process is simple. You only need to duplicate and rename to , then edit that file, inserting your site's database configuration, URL and salt keys (that you can generate at WordPress.org secret-key service or at my own Salt generator which outputs in .env format). After that, all configuration can be done from your web browser, accessing your site's URL and following normal Wordpress installation process.
Note (1): To access Wordpress admin panel, you need to access your site's URL followed by or (for example, http://mywebsite.com/cms/wp-admin or http://mywebsite.com/cms/wp-login.php).
Note (2): If you set environment variable to "auto", the will automatically be set based on requested domain (for example, will set to "https://mywebsite.com/").
3. Adding plugins
To add plugins, you need to edit the file, adding your required plugins into the "require" section, or run to require plugins through Composer. Also, you can install plugins in normal way, by adding them to or via Wordpress panel, but be advised that plugins added this way will be ignored by Composer and by Git (since you don't add them into ) and you'll not be able to update them with Composer. So, be careful.
Note: Custom plugins (plugins that aren't on Wordpress/WPackagist repository) can't be added to file or required by Composer, or it will cause errors while running Composer. To add custom plugins (or your own developed plugins), follow instructions on step 5.
4. Adding themes
Adding themes is done the same way you add plugins. Just edit file and add your themes into the "require" section, or run to require them with Composer. Also, this boilerplate comes with Twenty Twenty-Two theme, so you can follow this example to add your themes. As plugins, you can add new themes in normal way, extracting them to or installing via Wordpress panel. Themes added in normal way will not be updated or installed with Composer, but, unlike plugins, they will not be removed from your Git repository and will not cause problems when running Composer, because they aren't ignored in file (only the "Twenty something" themes are ignored).
Note: Custom themes (themes that aren't on Wordpress/WPackagist repository) can't be added to file, or it will cause errors while running Composer.
5. Adding or developing custom plugins
At some moment, you will need to add or create custom plugins. Since this boilerplate uses Composer to manage plugins that resides on Wordpress' repository, custom plugins will not work properly while using Composer. To add custom plugins, you'll need to add them to your file, and be sure the custom plugins aren't on your file.
6. Hosting and deploying
After deploying your Wordpress application, you need to point your webserver (Apache, NGINX, etc) root path to the directory of your application.
7. Versioning environments
Although not recommended, you can version development, testing and production environments. To do this, you just need to edit the corresponding file at , and all settings set on file will be overridden by settings on respective environment script.
8. Languages
To add a language to your Wordpress, you need to require the desired language from wp-languages.github.io repository. For example, to install Brazillian portuguese (codenamed "pt_br"), run in your project's root, or add to require section of your file.
All versions of wp-composer with dependencies
composer/installers Version ^2.2
johnpbloch/wordpress Version ^6.5
oscarotero/env Version ^2.1
vlucas/phpdotenv Version ^5.6
wpackagist-theme/twentytwentyfour Version ^1.1
wpackagist-plugin/wordpress-seo Version ^22.7
wpackagist-plugin/wp-optimize Version ^3.3.2
wpackagist-plugin/all-in-one-wp-security-and-firewall Version ^5.3.0
wpackagist-plugin/wp-mail-smtp Version ^4.0.1