UpdateSync is a composer package to help developers to integrate within their WordPress plugin to simplify their automatic updates directly from their code hosting providers repository.
UpdateSync is a modular composer package that helps developers to integrate automatic updates to their WordPress plugins and themes from various code hosting providers. Currently, it supports both GitHub and GitLab. Users can choose the provider they want to use, and additional providers can be integrated in the future.
- Modular Architecture: Common interface and abstract provider for shared functionality.
- Multiple Provider Support: Separate implementations for GitHub and GitLab.
- Optimized Performance: Caches API responses using WordPress transients.
- WordPress Integration: Hooks into WordPress update system.
- PHP 8.1 Compatible: Utilizes modern PHP practices.
- PSR-4 Autoloading: Easily integrated via Composer.
- Install via Composer:
composer require mehul0810/updatesync
- Include the Composer autoloader in your WordPress project:
require_once __DIR__ . '/vendor/autoload.php';
- Instantiate the provider using the factory:
use MG\UpdateSync\ProviderFactory; // To use GitHub update notifications: $provider = ProviderFactory::create('github', __FILE__); // To use GitLab update notifications: $provider = ProviderFactory::create('gitlab', __FILE__); // Run the provided. Always use only one provider at a time. $provider->run();
Contributions are welcome! Please follow these guidelines:
- Fork the repository and create a new branch for your feature or bug fix.
- Adhere to WordPress Coding Standards (WPCS/PHPCS).
- Write clear, descriptive commit messages and update documentation as needed.
- Submit a pull request with your changes.
This project is licensed under the GPLv3. See the LICENSE file for details.