PHP code example of pickleboxer / bitbucket-update-fetcher

1. Go to this page and download the library: Download pickleboxer/bitbucket-update-fetcher 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/ */

    

pickleboxer / bitbucket-update-fetcher example snippets



use BitbucketUpdateFetcher\UpdateFetcher;

$fetcher = new UpdateFetcher();

$fetcher->setCurrentVersion('0.1.1');
$fetcher->setWorkspace('workspace');
$fetcher->setRepoSlug('repoSlug');
$fetcher->setAccessToken('your_access_token');

$result = $fetcher->update();