tombenner / wp-mvc

An MVC framework for WordPress
http://wpmvc.org
MIT License
624 stars 172 forks source link

As a Composer library #246

Closed samualjacksonau closed 4 years ago

samualjacksonau commented 5 years ago

Hi,

Is this available as Composer library or can be easily converted?

celorodovalho commented 5 years ago

First of all, add wpackagist to your repositories:

    "repositories": [
        {
            "type": "composer",
            "url": "https://wpackagist.org"
        }
    ],

Then require the wp-mvc

composer require wpackagist-plugin/wp-mvc

Maybe you should organize your project like that:

  "extra": {
    "installer-paths": {
      "wp-content/mu-plugins/{$name}/": ["type:wordpress-muplugin"],
      "wp-content/plugins/{$name}/": ["type:wordpress-plugin"],
      "wp-content/themes/{$name}/": ["type:wordpress-theme"]
    },
    "wordpress-install-dir": "wp"
  },
cyberscribe commented 4 years ago

If anyone wants to contribute for this please open a pull request.