Download the PHP package vizrex/laravel-db-utils without Composer

On this page you can find all versions of the php package vizrex/laravel-db-utils. 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 laravel-db-utils

READ THIS FIRST

It is highly recommended for all contributors to update this file whenever there's a major update in source code. Use this tool for easy editing or visit this page for comprehensive guide on markdown syntax.

Introduction

This package contains command line utilities for database operations like backup, restore and create.

Dependencies

The following packages are used as dependencies:

Configuration

Console Commands

db:backup

Description

A console command to backup the application's default mysql database. the following config variables are used to backup the database:

Signature

db:backup {--path= : The path to save the backup file.} {--ignore_tables= : Comma separated list of tables that should not be included in backup} {--compress= : Whether to compress the backup file. It accepts true or false} {--upload= : Whether to upload the backup file to Dropbox and Google Drive. It accepts true or false}

Usage Examples

db:restore

Description

This command is used to resotre a database from given file. This command uses following config variables to determine which database to restore to.

Signature

db:restore {path}

Usage Example

db:restore /backups/2018_08_03_12_12_42_726150_db_project.sql

db:create

Description

This command is used to create a database for the application. It can also create a new user, give that user the previllages for newly created database and set database variables in .env

Signature

db:create {new_database : name for the database to be created}
{username : A username that has CREATE TABLE privileges}
{--password= : Password for the user}
{--host= : Database host.}
{--port= : Database port.}
{--new_user= : If provided, a new user will be created and will be granted database privileges}
{--new_password= : Password for the new user}
{--set_env=true: Whether to write database variables to .env . It accepts true or false, default is true}

Default configuration:

Usage Examples

Backup of .env will be automatically stored at storage/dotenv-editor/backups/ before new values are written.


All versions of laravel-db-utils with dependencies

PHP Build Version
Package Version
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 vizrex/laravel-db-utils contains the following files

Loading the files please wait ....