justintadlock / message-board

A simple forum plugin for us simple folks.
http://themehybrid.com/board
62 stars 5 forks source link

Add composer support #15

Closed einkoro closed 9 years ago

einkoro commented 9 years ago

Could you add composer support for installing the plugin? Quick sample composer.json:

{
    "name": "justintadlock/message-board",
    "description": "A simple WordPress forum plugin for us simple folks.",
    "type": "wordpress-plugin",
    "keywords": [
        "forum",
        "message board",
        "bulletin board",
        "wordpress"
    ],
    "homepage": "https://github.com/justintadlock/message-board",
    "license": "GPL-2.0",
    "authors": [
        {
            "name": "Justin Tadlock",
            "email": "justin@justintadlock.com"
        }
    ],
    "require": {
        "php": ">=5.6",
        "composer/installers": "~1.0"
    }
}

And register the package of the same name: https://packagist.org/packages/submit

michaelbeil commented 9 years ago

You could fork the project, add a composer.json, and submit a Pull Request if you would like: https://github.com/justintadlock/message-board/pulls.

einkoro commented 9 years ago

The package would still need to be registered by Justin on packagist and I'm not entirely sure if there is any additional information Justin would want in composer.json

justintadlock commented 9 years ago

I don't use Composer, but I'm always open to a PR or patch. Here's the one created for Hybrid Core, which would be a good starting point: https://github.com/justintadlock/hybrid-core/blob/master/composer.json

einkoro commented 9 years ago

Is the project GPL2 or 2+? Might be a good idea to add the license to the repo.

I'll open a pull request for composer.json — will you register on packagist?

justintadlock commented 9 years ago

I'll register it. The project is GPL 2+.

einkoro commented 9 years ago

Any minimum PHP requirements? 5.4 is nearing EOL, 5.5+?

justintadlock commented 9 years ago

No requirements.

michaelbeil commented 9 years ago

@Einkoro are you still going to create a PR? Otherwise, I can help.

justintadlock commented 9 years ago

Everything should be done now. It's on Packagist: https://packagist.org/packages/justintadlock/message-board

If it's working correctly for you, go ahead and close.

einkoro commented 9 years ago

Thanks Justin.