2017 © Pedro Peláez
 

library wordpress-skeleton

WordPress, Composer, and S3

image

chrisguitarguy/wordpress-skeleton

WordPress, Composer, and S3

  • Monday, April 27, 2015
  • by chrisguitarguy
  • Repository
  • 1 Watchers
  • 11 Stars
  • 77 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

Modern WordPress Skeleton

A modern (whatever that means) WordPress skeleton to use for creating Composer based WordPress installations., (*1)

Gettings Started

Create a new project with composer:, (*2)

$ composer create-project chrisguitarguy/wordpress-skeleton new-site ~1.0
$ cd new-site

From here you can add new dependencies to composer.json, remove the example plugins and themes and do any modifications you need., (*3)

Autoloading

The plugins and themes you build should be autoloaded with composer.json. See the example plugin line there right now:, (*4)

{
    "autoload": {
        "psr-4": {
            "Chrisguitarguy\\Skeleton\\ExamplePlugin\\": "web/content/plugins/example/inc/"
        },
        "files": [
            "web/content/plugins/example/inc/functions.php"
        ]
    }
}

Only autoload file that declare symbols (functions, contants, classes)! Not files that cause side effects., (*5)

Excluding Files from Version Control

Because not all packages can go in /vendor, you'll need to manually exclude things via .gitignore (or .hgignore, .svnignore, etc). There's an example here with the WordPress SEO plugin which is ignored in .gitignore:, (*6)

/web/content/plugins/wordpress-seo

You're Missing {X} From wp-config.php

Correct. This is meant to get you started, not make all the choices for you., (*7)

The various salts are missing, for example. You could add those yourself to another file and include it from wp-config.php or let WordPress generated them for you and save them in the database (what happens when they are missing)., (*8)

WHY?!

Because composer is nice and WordPress needs a good dose of modern development practices., (*9)

License

MIT. See the LICENSE file., (*10)

The Versions

27/04 2015

dev-master

9999999-dev

WordPress, Composer, and S3

  Sources   Download

MIT

The Requires

 

wordpress

27/04 2015

1.0.0

1.0.0.0

WordPress, Composer, and S3

  Sources   Download

MIT

The Requires

 

wordpress