oddevan / oops-generators

A collection of generators for using OOPS-WP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generators for OOPS-WP

Generate basic scaffolding for an OOPS-WP plugin.

Installation

In your composer.json

Add this repo:

"repositories":[
	{
		"type": "vcs",
		"url": "https://github.com/oddevan/oops-generators"
	}
],
"require": {
	"oddevan/oops-generators": "dev-master"
}

Make sure your composer.json has the necessary info, especially your psr-4 autoloader:

"name": "smolblog/smolblog-wp",
"description": "Bigger than micro, smaller than medium.",
"version": "0.1.0",
"authors": [
	{
		"name": "Evan Hildreth",
		"email": "me@eph.me",
		"homepage": "http://eph.me",
		"role": "Developer"
	}
],
"autoload": {
	"psr-4": {
		"Smolblog\\WP\\": "plugins/smolblog-wp/src/"
	}
}

Add the configuration:

"extra": {
	"oopsgen": {
		"text-domain": "smolblog-wp"
	}
}

And add the script handler:

"scripts": {
	"oopsgen": "oddevan\\oopsGenerators\\Main::go"
}

Then just type composer oopsgen to read the help text and start going!


Pull requests welcome. Please.

About

A collection of generators for using OOPS-WP


Languages

Language:PHP 100.0%