PHP code example of herrera-io / phar-update
1. Go to this page and download the library: Download herrera-io/phar-update 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/ */
herrera-io / phar-update example snippets
use Herrera\Phar\Update\Manager;
use Herrera\Phar\Update\Manifest;
$manager = new Manager(Manifest::loadFile(
'http://box-project.org/manifest.json'
));
// update to the next available 1.x update
$manager->update('1.0.0', true);