2017 © Pedro Peláez
 

library plugin-info

Read plugin metadata for shopware plugins

image

shopwarelabs/plugin-info

Read plugin metadata for shopware plugins

  • Wednesday, February 8, 2017
  • by bcremer
  • Repository
  • 28 Watchers
  • 5 Stars
  • 7,449 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 2 Versions
  • 4 % Grown

The README.md

Shopware plugin info

Software License, (*1)

The plugin info library allows you to analyze shopware plugin metadata of the new plugin.json metadata file. This way you can read versions or changelogs from a plugin without having to analyze the bootstrap file itself., (*2)

Install

Via Composer, (*3)

``` bash $ composer require shopwarelabs/plugin-info, (*4)

## Usage

use Shopware\PluginInfo; use Shopware\PluginInfo\Backend;, (*5)

$info = new PluginInfo(new Zip()); $plugin = $info->get('plugin.zip');, (*6)

$plugin->getCurrentVersion() // 2.4.0 $plugin->isCompatibleWith('4.3.0') // boolean $plugin->getChangelogs() // array of changelogs $plugin->getChangelog('2.4.0', 'en') // english changelog for version 2.4.0, (*7)


## plugin.json The plugin.json file should be placed in the same folder as the Bootstrap.php. It looks like this:

{ "label": { "de": "German label of the plugin", "en": "English label of the plugin" }, "copyright": "(c) by me", "license": "MIT", "link": "http://plugin-homepage-or-store-link.de", "author": "Jon Doe", "currentVersion": "1.0.6",, (*8)

"changelogs": {
    "de": {
        "1.0.6": "German  changelog"
    },
    "en": {
        "1.0.6": "English changelog"
    }
},

"compatibility": {
    "minimumVersion": "4.1.3",
    "maximumVersion": null,
    "blacklist": [
        "4.1.4"
    ]
}

} ```, (*9)

The Versions

08/02 2017

dev-master

9999999-dev

Read plugin metadata for shopware plugins

  Sources   Download

MIT

The Requires

 

The Development Requires

16/01 2015

dev-define-child-schema

dev-define-child-schema

Read plugin metadata for shopware plugins

  Sources   Download

MIT

The Requires

 

The Development Requires