2017 © Pedro Peláez
 

project wordpress-standard

The "Wordpress Standard Edition" distribution in the LIN3S way

image

lin3s/wordpress-standard

The "Wordpress Standard Edition" distribution in the LIN3S way

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 37 Versions
  • 8 % Grown

The README.md

WordPress Standard Edition

The "WordPress Standard Edition" distribution in the LIN3S way., (*1)

SensioLabsInsight Scrutinizer Code Quality Total Downloads      Latest Stable Version Latest Unstable Version, (*2)

Why?

WordPress is the most important CMS around the world, but its PHP code is dark and unmaintainable. In LIN3S we implement this solution providing some useful features that the standard edition of WordPress doesn't come with:, (*3)

  1. Composer
  2. PHP namespaces
  3. Capistrano deploy
  4. WPFoundation made by LIN3S
  5. Coding standards library made by LIN3S

Prerequisites

The above sounds great so, now, to start developing WordPress project based on this repo, you need the the following requirements:, (*4)

  1. [PHP][15] 7.1 or higher
  2. [MySQL][16]
  3. Composer: curl -sS https://getcomposer.org/installer | php
  4. [Ruby][17]: gem install bundler && bundle

Getting Started

After installing all the prerequisites, to create a WordPress project based on this Wordpress Standard you should check the following steps., (*5)

Firstly, you need to create the project:, (*6)

$ composer create-project lin3s/wordpress-standard <project-name> && cd <project-name>

You should remove the header licenses and LICENSE itself, because we are not going to be the authors of your awesome project :)., (*7)

Create the wp-config-custom.php copying the wp-config-custom-sample.php and customizing with your values., (*8)

Configure the web server to serve this project. With PHP 5.4 or higher you don't need to configure the web server for this project, because you can use the "built-in-server":, (*9)

$ php -S 127.0.0.1:8000 router.php

Use an [Apache][20], Nginx or other web server of your choice for production environments. If you choose Apache, remember that you should create the .htaccess copying the base .htaccess.dist file., (*10)

Considerations

If all goes well you should have your project on top of WordPress Standard running like a charm. However, there are few tips that you should read., (*11)

  • Activate all yours plugins before all: it's a common mistake.
  • Usually, the features WordPress has by default are not enough so new PostTypes, Widgets, ShortCodes, ImageSizes... have to be created. In case you need those changes to the codebase you should go to the core folder. There, you will find some examples on how to extend many different WordPress features. In case there is no class for what you need, just create a new class or a new folder (if there are multiple classes related to that feature as in post types) with your code.

Deployment

To automate deployment process this project is using Capistrano. All related configuration is inside located inside the deploy directory. You can customize deployment tasks simply, modifying the deploy/deploy.rb file., (*12)

You should update the wordpress-standard application name for your awesome project name and the repo url with your project git url., (*13)

Inside deploy/stages directory there two files that can be considered as pre-production stage and production stage. There is no logic, these files only contain few parameters that you should customize for your proper deployment., (*14)

After all, and following the Capistrano [documentation][11] to configure the server, you can deploy executing:, (*15)

$ cap <stage> deploy    # <stage> can be dev1, prod or whatever file inside stages directory

In the Capistrano shared directory you should create the uploads folder, the .htaccess file (if you are using Apache), the robots.txt and the wp-config-custom.php files., (*16)

Downloading database dump

To download the file just run cap dev1 database:download. A sql file will be downloaded to your local environment, (*17)

Replacing uploads with remote ones

To steps are required to get all the uploads located in the remote environment, download and extract., (*18)

cap dev1 uploads:download will download a .tar.gz file to the root of your local environment and cap dev1 uploads:extract will extract the downloaded file into src/uploads folder, replacing all the existing uploads., (*19)

Ensuring remote files and folders

The first time you deploy the project, all linked files must be created in order to be symlinked. In order to autocreate folders and uploads your local files to the remote server (very handy when using W3 Total Cache), just run:, (*20)

cap dev1 server:ensure, (*21)

After this, just deploy without any problem., (*22)

Clearing remote caches

When working with PHP7 & Opcache, for example, you won't see all changes after deploying. Caches need to be flushed with the correct website domain. If you need this feature, just open the deploy.rb file and remove the commented line:, (*23)

after :finishing, 'cache:clear'

You also need to configure the website domain in each stage file. If the website is password protected, the curl command must use the -u user:password given in the dev1.rb example file., (*24)

Licensing Options

License, (*25)

The Versions

24/01 2018

dev-master

9999999-dev

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress cms standard lin3s

24/01 2018

dev-feature/major-refactor

dev-feature/major-refactor

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress cms lin3s

15/11 2017

dev-feature/capistrano

dev-feature/capistrano

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • lin3s/cs ^0.4.3
  • symfony/var-dumper ^3.1
  • wpackagist-plugin/debug-bar ~0.8
  • wpackagist-plugin/debug-bar-timber ~0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ^1.0
  • wpackagist-plugin/plugin-profiler ^1.1.2
  • wpackagist-plugin/query-monitor ^2.8.1

wordpress standard lin3s

30/03 2017

v1.5.1

1.5.1.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • lin3s/cs ^0.4.3
  • symfony/var-dumper ^3.1
  • wpackagist-plugin/debug-bar ~0.8
  • wpackagist-plugin/debug-bar-timber ~0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ^1.0
  • wpackagist-plugin/plugin-profiler ^1.1.2
  • wpackagist-plugin/query-monitor ^2.8.1

wordpress standard lin3s

12/07 2016

v1.5.0

1.5.0.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • lin3s/cs ^0.4
  • symfony/var-dumper ^3.0
  • wpackagist-plugin/debug-bar ~0.8
  • wpackagist-plugin/debug-bar-timber ~0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ^1.0
  • wpackagist-plugin/plugin-profiler ^1.1.2
  • wpackagist-plugin/query-monitor ^2.8.1

wordpress standard lin3s

07/06 2016

v1.4.1

1.4.1.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ^3.0
  • wpackagist-plugin/debug-bar ~0.8
  • wpackagist-plugin/debug-bar-timber ~0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ^1.0
  • wpackagist-plugin/plugin-profiler ^1.1.2
  • wpackagist-plugin/query-monitor ^2.8.1

wordpress standard lin3s

24/05 2016

dev-feature/stylelint

dev-feature/stylelint

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ^3.0
  • wpackagist-plugin/debug-bar ~0.8
  • wpackagist-plugin/debug-bar-timber ~0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ^1.0
  • wpackagist-plugin/plugin-profiler ^1.1.2
  • wpackagist-plugin/query-monitor ^2.8.1

wordpress standard lin3s

16/05 2016

v1.4.0

1.4.0.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ^3.0
  • wpackagist-plugin/debug-bar ~0.8
  • wpackagist-plugin/debug-bar-timber ~0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ^1.0
  • wpackagist-plugin/plugin-profiler ^1.1.2
  • wpackagist-plugin/query-monitor ^2.8.1

wordpress standard lin3s

06/04 2016

v1.3.5

1.3.5.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ^3.0
  • wpackagist-plugin/debug-bar ~0.8
  • wpackagist-plugin/debug-bar-timber ~0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ^1.0
  • wpackagist-plugin/plugin-profiler ^1.1.2
  • wpackagist-plugin/query-monitor ^2.8.1

wordpress standard lin3s

23/03 2016

v1.3.4

1.3.4.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ^3.0
  • wpackagist-plugin/debug-bar ~0.8
  • wpackagist-plugin/debug-bar-timber ~0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ^1.0
  • wpackagist-plugin/plugin-profiler ^1.1.2
  • wpackagist-plugin/query-monitor ^2.8.1

wordpress standard lin3s

02/03 2016

v1.3.3

1.3.3.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ^3.0
  • wpackagist-plugin/debug-bar ~0.8
  • wpackagist-plugin/debug-bar-timber ~0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ^1.0
  • wpackagist-plugin/plugin-profiler ^1.1.2
  • wpackagist-plugin/query-monitor ^2.8.1

wordpress standard lin3s

02/03 2016

v1.3.2

1.3.2.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ^3.0
  • wpackagist-plugin/debug-bar ~0.8
  • wpackagist-plugin/debug-bar-timber ~0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ^1.0
  • wpackagist-plugin/plugin-profiler ^1.1.2
  • wpackagist-plugin/query-monitor ^2.8.1

wordpress standard lin3s

01/03 2016

v1.3.1

1.3.1.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ^3.0
  • wpackagist-plugin/debug-bar ~0.8
  • wpackagist-plugin/debug-bar-timber ~0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ^1.0
  • wpackagist-plugin/plugin-profiler ^1.1.2
  • wpackagist-plugin/query-monitor ^2.8.1

wordpress standard lin3s

01/03 2016

v1.3.0

1.3.0.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ^3.0
  • wpackagist-plugin/debug-bar ~0.8
  • wpackagist-plugin/debug-bar-timber ~0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ^1.0
  • wpackagist-plugin/plugin-profiler ^1.1.2
  • wpackagist-plugin/query-monitor ^2.8.1

wordpress standard lin3s

15/01 2016

v1.2.0

1.2.0.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ^3.0
  • wpackagist-plugin/debug-bar ~0.8
  • wpackagist-plugin/debug-bar-timber ~0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ^1.0
  • wpackagist-plugin/plugin-profiler ^1.0
  • wpackagist-plugin/query-monitor ^2.8

wordpress standard lin3s

09/12 2015

v1.1.6

1.1.6.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ^3.0
  • wpackagist-plugin/debug-bar ~0.8
  • wpackagist-plugin/debug-bar-timber ~0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ^1.0
  • wpackagist-plugin/plugin-profiler ^1.0
  • wpackagist-plugin/query-monitor ^2.8

wordpress standard lin3s

09/12 2015

v1.1.5

1.1.5.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ^3.0
  • wpackagist-plugin/debug-bar ^0.8
  • wpackagist-plugin/debug-bar-timber ^0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ^1.0
  • wpackagist-plugin/plugin-profiler ^1.0
  • wpackagist-plugin/query-monitor ^2.8

wordpress standard lin3s

17/11 2015

v1.1.4

1.1.4.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ^2.7
  • wpackagist-plugin/debug-bar ^0.8
  • wpackagist-plugin/debug-bar-timber ^0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ^1.0
  • wpackagist-plugin/plugin-profiler ^1.0
  • wpackagist-plugin/query-monitor ^2.8

wordpress standard lin3s

13/11 2015

v1.1.3

1.1.3.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ^2.7
  • wpackagist-plugin/debug-bar ^0.8
  • wpackagist-plugin/debug-bar-timber ^0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ^1.0
  • wpackagist-plugin/plugin-profiler ^1.0
  • wpackagist-plugin/query-monitor ^2.8

wordpress standard lin3s

12/11 2015

v1.1.2

1.1.2.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ^2.7
  • wpackagist-plugin/debug-bar ^0.8
  • wpackagist-plugin/debug-bar-timber ^0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ^1.0
  • wpackagist-plugin/plugin-profiler ^1.0
  • wpackagist-plugin/query-monitor 2.7.*

wordpress standard lin3s

11/11 2015

v1.1.1

1.1.1.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ^2.7
  • wpackagist-plugin/debug-bar ^0.8
  • wpackagist-plugin/debug-bar-timber ^0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ^1.0
  • wpackagist-plugin/plugin-profiler ^1.0
  • wpackagist-plugin/query-monitor 2.7.*

wordpress standard lin3s

11/11 2015

v1.1.0

1.1.0.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ^2.7
  • wpackagist-plugin/debug-bar ^0.8
  • wpackagist-plugin/debug-bar-timber ^0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ^1.0
  • wpackagist-plugin/plugin-profiler ^1.0
  • wpackagist-plugin/query-monitor 2.7.*

wordpress standard lin3s

03/11 2015

v1.0.14

1.0.14.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ^2.7
  • wpackagist-plugin/debug-bar ^0.8
  • wpackagist-plugin/debug-bar-timber ^0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ^1.0
  • wpackagist-plugin/plugin-profiler ^1.0
  • wpackagist-plugin/query-monitor 2.7.*

wordpress standard lin3s

14/10 2015

v1.0.13

1.0.13.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ~2.7
  • wpackagist-plugin/debug-bar ~0.8
  • wpackagist-plugin/debug-bar-timber ~0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ~1.0
  • wpackagist-plugin/plugin-profiler ~1.0
  • wpackagist-plugin/query-monitor 2.7.*

wordpress standard lin3s

06/10 2015

v1.0.12

1.0.12.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ~2.7
  • wpackagist-plugin/debug-bar ~0.8
  • wpackagist-plugin/debug-bar-timber ~0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ~1.0
  • wpackagist-plugin/plugin-profiler ~1.0
  • wpackagist-plugin/query-monitor 2.7.*

wordpress standard lin3s

06/10 2015

v1.0.11

1.0.11.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ~2.7
  • wpackagist-plugin/debug-bar ~0.8
  • wpackagist-plugin/debug-bar-timber ~0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ~1.0
  • wpackagist-plugin/plugin-profiler ~1.0
  • wpackagist-plugin/query-monitor 2.7.*

wordpress standard lin3s

22/09 2015

v1.0.10

1.0.10.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ~2.7
  • wpackagist-plugin/debug-bar ~0.8
  • wpackagist-plugin/debug-bar-timber ~0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ~1.0
  • wpackagist-plugin/plugin-profiler ~1.0
  • wpackagist-plugin/query-monitor 2.7.*

wordpress standard lin3s

22/09 2015

v1.0.9

1.0.9.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ~2.7
  • wpackagist-plugin/debug-bar ~0.8
  • wpackagist-plugin/debug-bar-timber ~0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ~1.0
  • wpackagist-plugin/plugin-profiler ~1.0
  • wpackagist-plugin/query-monitor 2.7.*

wordpress standard lin3s

21/09 2015

v1.0.8

1.0.8.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ~2.7
  • wpackagist-plugin/debug-bar ~0.8
  • wpackagist-plugin/debug-bar-timber ~0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ~1.0
  • wpackagist-plugin/plugin-profiler ~1.0
  • wpackagist-plugin/query-monitor 2.7.*

wordpress standard lin3s

14/09 2015

v1.0.7

1.0.7.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ~2.7
  • wpackagist-plugin/debug-bar ~0.8
  • wpackagist-plugin/debug-bar-timber ~0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ~1.0
  • wpackagist-plugin/plugin-profiler ~1.0
  • wpackagist-plugin/query-monitor 2.7.*

wordpress standard lin3s

08/09 2015

v1.0.6

1.0.6.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

  • symfony/var-dumper ~2.7
  • wpackagist-plugin/debug-bar ~0.8
  • wpackagist-plugin/debug-bar-timber ~0.3
  • wpackagist-plugin/monkeyman-rewrite-analyzer ~1.0
  • wpackagist-plugin/plugin-profiler ~1.0
  • wpackagist-plugin/query-monitor 2.7.*

wordpress standard lin3s

06/08 2015

v1.0.5

1.0.5.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress standard lin3s

05/08 2015

v1.0.4

1.0.4.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress standard lin3s

30/07 2015

v1.0.3

1.0.3.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress standard lin3s

30/07 2015

v1.0.2

1.0.2.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress standard lin3s

29/07 2015

v1.0.1

1.0.1.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress standard lin3s

27/07 2015

v1.0.0

1.0.0.0

The "Wordpress Standard Edition" distribution in the LIN3S way

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress standard lin3s