Download the PHP package olafnorge/borgphp without Composer

On this page you can find all versions of the php package olafnorge/borgphp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package borgphp

Total Downloads Latest Stable Version License

Library to execute arbitrary BorgBackup commands

From Borg Documentation: What is BorgBackup?

BorgBackup (short: Borg) is a deduplicating backup program. Optionally, it supports compression and authenticated encryption.

The main goal of Borg is to provide an efficient and secure way to backup data. The data deduplication technique used makes Borg suitable for daily backups since only changes are stored. The authenticated encryption technique makes it suitable for backups to not fully trusted targets.

This library makes use of the borg binary and executes arbitrary commands through the underlying Symfony Process component. It's essential for the library to be able to execute the binary therefore it needs to be installed beforehand. The library itself does not check if the command is available before executing it and will fail with a ProcessFailedException bubbled up from the Symfony Process component.

Installation of BorgBackup (the binary itself)

Please refer to the official documentation of Borg to get an idea which installation method suites best for your OS.

Installation of the library

Usage

The library directly passes through all command parameters and options to the underlying BorgBackup binary. It takes care of the proper position of the parameters and options and does some validation if they align with the expected format of BorgBackup. All you need to do is passing the parameters and options as array to the command you want to execute.

Status of implementation

For now only some commands are fully implemented because I didn't have a use case for the missing commands yet. Below you find a list of what is done so far. As mentioned already the parameters and options are directly passed through to the borg binary. To be able to make use of a command that fits your needs I referenced the official documentation of each command next to it.

Command Official BorgBackup Documentation
config https://borgbackup.readthedocs.io/en/stable/usage/config.html#borg-config
create https://borgbackup.readthedocs.io/en/stable/usage/create.html#borg-create
export-tar https://borgbackup.readthedocs.io/en/stable/usage/tar.html#borg-export-tar
info https://borgbackup.readthedocs.io/en/stable/usage/info.html#borg-info
init https://borgbackup.readthedocs.io/en/stable/usage/init.html#borg-init
list https://borgbackup.readthedocs.io/en/stable/usage/list.html#borg-list

Contributions are highly welcome and appreciated. I will only add additional commands by myself if I have an own need, but if you have a need a PR would be more than welcomed.

License

BorgPHP is open-sourced software licensed under the MIT license.


All versions of borgphp with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
ext-json Version *
ext-mbstring Version *
ext-pcntl Version *
symfony/process Version ^4.0|^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package olafnorge/borgphp contains the following files

Loading the files please wait ....