PHPBU 5.0 requires PHP 7.0, but using the latest version of PHP is highly recommended.
PHPBU requires the dom and json extensions, which are normally enabled by default.
PHPBU also requires the spl extension. It is required by the PHP core since 5.3.0 and normally cannot be disabled.
The different backup sources may need their respective executable binary f.e. mysqldump.
The easiest way to install PHPBU is to download a PHP Archive (PHAR) that has all required dependencies of PHPBU bundled in a single file.
If the Suhosin extension is
enabled, you need to allow execution of PHARs in your
php.ini:
suhosin.executor.include.whitelist = phar
The easiest way to get PHPBU is by using phive or by manually downloading the PHAR-Archive from the GitHub.com release page
$ phive install phpbu
$ phpbu --version
phpbu x.y.z by Sebastian Feldmann and Contributors.
If you are using Composer to manage
your dependencies, simply add phpbu/phpbu to your
composer.json file.
{
"require": {
"phpbu/phpbu": "5.0.*"
}
}For a system-wide installation via Composer, just run:
composer global require phpbu/phpbu
Make sure you have ~/.composer/vendor/bin/ in your path.
The following framework integrations are available:
phpbu-laravel
Integrates phpbu with the laravel artisan command line tool. See the section called “Laravel” for details.