jjgrainger/wp-custom-post-type-class — pull request #6 by vinkla (2014-01-07 07:55:43+00:00)
Title: Make the repositiory in to a @composer Packagist package.

This will allow developers to stop copy/paste the class and just add it as a dependency to their @WordPress developing environment via @composer.

Simply adding the package to a composer.json file in the root of the developing environment and run `composer install` in the prompt.
```
{
"require": {
"jjgrainger/wp-custom-post-type-class": "dev"
}
}
```

The package will now be added into a vendor directory in the root of your project. Then simply add the following to your functions.php;
```
require(__DIR__.'/vendor/autoload.php');
```

The developer will now be able to take full advantage of the CPT class without copy-pasting any files or code.

To add this package to the [Packagist](https://packagist.org/) Composer repository you will have to submit it. Read more about submitting Packagist packages: http://juniorgrossi.com/2013/creating-your-first-composer-packagist-package/