2017 © Pedro Peláez
 

library dbmanage

image

idevoc/dbmanage

  • Thursday, October 23, 2014
  • by anshad
  • Repository
  • 1 Watchers
  • 3 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

dbmanage

Database Backup Management Package for Laravel 4., (*1)

Backup database or tables in compressed format., (*2)

Installation

The DBManage Service Provider can be installed via Composer by requiring the idevoc/dbmanage package in your laravel project's composer.json., (*3)

Note : The dbmanage depends on doctrine/dbal, (*4)

{
   "require": {
      "laravel/framework": "4.2.*",
      "doctrine/dbal": "2.5.*@dev",
      "idevoc/dbmanage": "dev-master"
   }
}

Next, Update your packages with:, (*5)

composer update 

Or Install with:, (*6)

composer install 

Usage

Add the service provider to app/config/app.php, within the providers array., (*7)

'providers' => array(
     //--
    'Idevoc\Dbmanage\DbmanageServiceProvider',
)

Next, create alias in app/config/app.php, within the aliases array., (*8)

'aliases' => array(
     //--
    'DbManage'   => 'Idevoc\Dbmanage\DbManage',
)   

Finally, call the function., (*9)

Note: before calling function, you need to set database configurations., (*10)

Add your backup path in app/config/app.php or just pass it directly., (*11)

return DbManage::backupDatabase(); // backup full db to app/database
return DbManage::backupDatabase(app_path().'/'); // backup to app path (you can define any path)
return DbManage::backupDatabase(NULL, 'users,pages'); // backup only users and pages table to default path

The Versions

23/10 2014

dev-master

9999999-dev

  Sources   Download

The Requires

 

by Avatar anshad