Download the PHP package wkhayrattee/wordpress-with-composer without Composer
On this page you can find all versions of the php package wkhayrattee/wordpress-with-composer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wkhayrattee/wordpress-with-composer
More information about wkhayrattee/wordpress-with-composer
Files in wkhayrattee/wordpress-with-composer
Package wordpress-with-composer
Short Description This is a base setup for using WordPress with composer & git workflow. See the readme of usage.
License GPL-3.0
Informations about the package wordpress-with-composer
Using WordPress With Composer & GIT workflow
This project is production ready.
If that matters, I have deployed several WooCommerce-based shops using this setup for the last 4yrs, as well as numourous WordPress blogs.
I obviously also use it on the high production shops/websites for my professional work-place. So far, no issue or constraints. It makes working and developing in WordPress a joy. It makes automated deploy very neat { helps achieve part of the goals for 12-factor principle }.
Now go rock your WordPress development workflow with confidence!
How To Use
1) Use Composer to setup the project:
NOTE: if on DEV environment, omit the --no-dev --optimize-autoloader --prefer-dist
2) Setup your Config & .env files:
Inside the folder www/env, do:
- rename .env.example to .env and adjust the values as per your context
- Depending on whether you are on DEV or PRODuction, rename _dev-sample.php to dev.php and adjust the values as per your context
==> Then point your webServer to: path/to/your_main_folder/www/public
3) Add any packages through Composer's require and enjoy building WordPress in a new flexible way, without using the dashboard - you control everything :)
Intro
This is not a "project" (as in a framework) per se, but more of an attempt to adjust the structure of WordPress for PHP developers to be able to add & use Composer and GIT in their workflow.
I'm a PHP developer and like to stay current. I had to embark into DEV-ing with WordPress.
In so-doing, I now feel differently positive about coding with WordPress as well, although I have been using WordPress since 2007 like crazy at a functional level for online purposes (like blogging..etc).
While the code is not 5 star, WordPress in the philosophy is indeed amazing.
Think about it, it's the _onlyproject that has not (never?) made its user-base suffer from upgrading.
It is always highly easy to upgrade. That, in itself is incredible! Anyway, so I wanted to be able to use GIT & a composer approach to my workflow and hence came up with this.
Your Feedback
If you use this project, I would love to hear from you as well. I may feature your project in here to showcase. So get in touch.
NOTE:
I know & have seen roots.io, but it goes way too far in their approach - modifying the structure of WordPress, it's too risky of an approach. It's kinda overdoing it. (No offence, but that's how I feel)
Objectives
- Incorporate composer & git workflow into my daily WordPress dev
- Make sure I do not divert too much from what WordPress advises in Giving WordPress Its Own Directory and Hardening WordPress
CHANGELOG
- Please see CHANGELOG for details.
REFERENCE
All versions of wordpress-with-composer with dependencies
composer/installers Version 2.2.0
johnpbloch/wordpress Version 6.3.2
wpackagist-theme/twentytwentythree Version 1.2
wpackagist-plugin/akismet Version 5.3