PHP code example of mehulgohil / updatesync

1. Go to this page and download the library: Download mehulgohil/updatesync library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mehulgohil / updatesync example snippets


     

    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();