marked-effect / github-plugin-updater
GitHub Updater for WordPress
0.1.1
2025-04-10 15:28 UTC
Requires
- league/commonmark: ^2.6
- php-di/php-di: *
Requires (Dev)
- 10up/wp_mock: *
- phpcsstandards/phpcsutils: ^1.0
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9.6
- squizlabs/php_codesniffer: ^3.7
- symfony/var-dumper: *
- szepeviktor/phpstan-wordpress: ^1.3
- wp-coding-standards/wpcs: ^3.0
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', ] ] );