PHPBU 4.0 requires PHP 5.4, but using the latest version of PHP is highly recommended. If you want to use the PHAR version the minimum PHP version is 5.5.
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
To globally install the PHAR:
$
wget http://phar.phpbu.de/phpbu.phar
$
chmod +x phpbu.phar
$
sudo mv phpbu.phar /usr/local/bin/phpbu
$
phpbu --version
phpbu x.y.z
You may also use the downloaded PHAR file directly:
$
wget https://phar.phpbu.de/phpbu.phar
$
php phpbu.phar --version
phpbu x.y.z
If you are using Composer to manage
your dependencies, simply add phpbu/phpbu
to your
composer.json
file.
{ "require": { "phpbu/phpbu": "4.0.*" } }
For a system-wide installation via Composer, just run:
composer global require "phpbu/phpbu=4.0.*"
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.