Download the PHP package hmillet/backup-commands-bundle without Composer

On this page you can find all versions of the php package hmillet/backup-commands-bundle. 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 backup-commands-bundle

Hmillet Backup Commands Bundle

This bundle provides symfony console commands that allow you to backup your database and your files in your dropbox

SensioLabsInsight

Installation

Step 1

Using Composer

Add the following code to your composer.json :

"require": {
    ...
    "hmillet/backup-commands-bundle": "dev-master"
    ...
},

Run a Composer update

$ php composer.phar update

Step 2

Register the bundle in the AppKernel.php file :

public function registerBundles()
{
    $bundles = array(
        ...
        new Hmillet\BackupCommandsBundle\HmilletBackupCommandsBundle(),
        ...
    );

    return $bundles;
}

Step 3 (optionnal)

Add parameters and configuration for the bundle, so it can read and write to your dropbox.

First of all, you have to get an access token. In order to get it, just run :

php app/console dropbox:setup

in app/config/parameters.yml-dist (otherwise, "composer.phar update" will remove your parameter from parameters.yml), add the line :

backup_dropbox_access_token: ~

in app/config/parameters.yml, add the line given by the above command :

backup_dropbox_access_token: your token

in app/config/config.yml, add the lines :

hmillet_backup_commands:
    dropbox:
        access_token: %backup_dropbox_access_token%

Requirements

This bundle needs (in local and remote server)

See the Getting Started page of the dropbox-sdk-php library.

Command line

Now from your console you can run

./app/console db:dump

and see that a new file has been saved in folder /app/tmp/dump with an hard link to the newest one.

You can run

./app/console db:restore

and choose which file you want to restore.


All versions of backup-commands-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
symfony/symfony Version >=3.0
kunalvarma05/dropbox-php-sdk Version ^0.2.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 hmillet/backup-commands-bundle contains the following files

Loading the files please wait ...