1. Go to this page and download the library: Download muyaedward/wbapp-updater 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/ */
public function update()
{
// This downloads and install the latest version of your repo
Updater::update();
// Just download the source and do the actual update elsewhere
Updater::fetch();
// Check if a new version is available and pass current version
Updater::isNewVersionAvailable('1.2');
}
public function update(UpdaterManager $updater)
{
$updater->update(); // Same as above
// .. and shorthand for this:
$updater->source()->update;
$updater->fetch() // Same as above...
}
public function boot()
{
Updater::extend('bitbucket', function($app) {
return Updater::sourceRepository(new BitbucketRepositoryType);
});
}
public function update(UpdaterManager $updater)
{
$updater->source('bitbucket')->update();
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.