marked-effect/github-plugin-updater

GitHub Updater for WordPress

0.1.1 2025-04-10 15:28 UTC

This package is auto-updated.

Last update: 2025-04-10 15:28:48 UTC


README

Installation

Install the [composer package]:

composer require marked-effect/github-plugin-updater

Example

    new GHPluginUpdater\Main( __FILE__, [
        'github.user' => 'bob-moore',
        'github.repo' => 'simple-menu-block',
        'github.branch' => 'main',
        'plugin.banners' => [
            'low' => trailingslashit( plugin_dir_url( __FILE__ ) ) . 'assets/banner-772x250.jpg',
            'high' => trailingslashit( plugin_dir_url( __FILE__ ) ) . 'assets/banner-1544x500.jpg',
        ],
        'plugin.icons' => [
            'default' => trailingslashit( plugin_dir_url( __FILE__ ) ) . 'assets/icon.png',
        ]
    ] );