2017 © Pedro Peláez
 

project wordpresswithcomposer

This is a base setup for using wordpress with composer & git workflow. See the readme of usage.

image

sevenphp/wordpresswithcomposer

This is a base setup for using wordpress with composer & git workflow. See the readme of usage.

  • Wednesday, April 12, 2017
  • by 7php
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Using WordPress With Composer & GIT workflow

This project is production ready., (*1)

If that matters, I have deployed several WooCommerce-based shops using this setup for the last 4yrs, as well as numourous WordPress blogs., (*2)

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 }., (*3)

Now go rock your WordPress development workflow with confidence!, (*4)

## How To Use

1) Use Composer to setup the project:, (*5)

$ composer create-project sevenphp/WordPresswithcomposer your_main_folder --no-dev --optimize-autoloader --prefer-dist -vv

NOTE: if on DEV environment, omit the --no-dev --optimize-autoloader --prefer-dist, (*6)

2) Setup your Config & .env files:, (*7)

Inside the folder www/env, do:, (*8)

  • 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, (*9)

3) Add any packages through Composer's require and enjoy building WordPress in a new flexible way, without using the dashboard - you control everything :), (*10)

## 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., (*11)

I'm a PHP developer and like to stay current. I had to embark into DEV-ing with WordPress., (*12)

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)., (*13)

While the code is not 5 star, WordPress in the philosophy is indeed amazing., (*14)

Think about it, it's the only_project that has not (never?) made its user-base suffer from upgrading., (*15)

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., (*16)

### 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., (*17)

NOTE:, (*18)

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), (*19)

### Objectives

CHANGELOG

REFERENCE

The Versions

12/04 2017

dev-master

9999999-dev

This is a base setup for using wordpress with composer & git workflow. See the readme of usage.

  Sources   Download

MIT

The Requires

 

The Development Requires

  • wpackagist-plugin/query-monitor ^2

wordpress use composer with wordpress wordpress composer composer wordpress

12/04 2017

0.3.3

0.3.3.0

This is a base setup for using wordpress with composer & git workflow. See the readme of usage.

  Sources   Download

MIT

The Requires

 

The Development Requires

  • wpackagist-plugin/query-monitor ^2

wordpress use composer with wordpress wordpress composer composer wordpress

21/03 2017

0.3.2

0.3.2.0

This is a base setup for using wordpress with composer & git workflow. See the readme of usage.

  Sources   Download

MIT

The Requires

 

wordpress use composer with wordpress wordpress composer composer wordpress

22/11 2016

0.3.1

0.3.1.0

This is a base setup for using wordpress with composer & git workflow. See the readme of usage.

  Sources   Download

MIT

The Requires

 

wordpress use composer with wordpress wordpress composer composer wordpress

31/10 2016

0.3

0.3.0.0

This is a base setup for using wordpress with composer & git workflow. See the readme of usage.

  Sources   Download

MIT

The Requires

 

wordpress use composer with wordpress wordpress composer composer wordpress

28/10 2016

0.2.0

0.2.0.0

This is a base setup for using wordpress with composer & git workflow. See the readme of usage.

  Sources   Download

MIT

The Requires

 

wordpress use composer with wordpress wordpress composer composer wordpress

28/10 2016

0.1.0

0.1.0.0

This is a base setup for using wordpress with composer & git workflow. See the readme of usage.

  Sources   Download

MIT

The Requires

 

wordpress use composer with wordpress wordpress composer composer wordpress