omeka-packages

Omeka Packages (for composer)

Usage

Use this as a compser package repository that provides composer.json representations for omeka plugins that don’t have one within the repository and therefore cannot be added to packagist. The URL is https://digihum.github.io/omeka-packages/. This can be added to a composer.json file.

            {
                        "type": "composer",
                        "url": "https://digihum.github.io/omeka-packages/"
            },

All packages are of type omeka-plugin.

Composer https://getcomposer.org/ is a dependency manager for PHP, but it’s not widely used with Omeka. It’s one way for us to automate the deployment of Omeka classic sites as we manage many of them with various common and custom plugin configurations.

Coverage

This is a working project that will grow as dependencies and dependency versions are added. Contributions are welcomed. Please provide a pull request. Currently there is often only one version of a package per plugin.

Contributions

To make a contribution of a new plugin please follow the following process and submit a pull request:

To make a contribution of a new version to an existing plugin please add your complete contribution to the json array for the plugin in reverse order as below:

```
{
"packages": {
    "[VENDOR]/[PLUGIN-NAME]": [
            @composer.json (newer)
            @composer.json 
            @composer.json (older)
     ]
}
```

Using Composer with Omeka

A few tweaks are necessary to have composer working nicely with your Omeka setup. Plugin folder names are

Add an extras section:

    "extra": {
        "installer-types": ["omeka-plugin", "omeka-theme", "library"],
        "installer-paths": {
            "/var/www/html/": ["omeka/omeka"],
            "/var/www/html/plugins/{$name}/": ["type:omeka-plugin"],
            "/var/www/html/themes/{$name}/": ["type:omeka-theme"]
        }
    },
    "config": {
        "allow-plugins": {
            "composer/installers": true,
            "neclimdul/composer-installers-extender": true,
            "php-http/discovery": true,
            "cweagans/composer-patches": false
        },
    "vendor-dir": "/LOCATION/TO/PUT/OTHER/GENERAL/DEPENDENCIES"

Todo

License

This repository is being made freely available by the Research Software Engineering team at University of Warwick under a MIT License.