Skip to content

It is a simple updater class that will help developers to pull release from GitHub to provide automatic updates to the WordPress plugins.

License

Notifications You must be signed in to change notification settings

mehul0810/updatesync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UpdateSync

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.

Overview

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.

Features

  • 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.

Installation

  1. Install via Composer:
    composer require mehul0810/updatesync
  2. Include the Composer autoloader in your WordPress project:
    require_once __DIR__ . '/vendor/autoload.php';
  3. 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();

Contributing

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.

License

This project is licensed under the GPLv3. See the LICENSE file for details.

About

It is a simple updater class that will help developers to pull release from GitHub to provide automatic updates to the WordPress plugins.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages