tomshaw/laravel-database-export 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tomshaw/laravel-database-export

最新稳定版本:v0.6.0

Composer 安装命令:

composer require tomshaw/laravel-database-export

包简介

A Laravel database export console command.

README 文档

README

GitHub Workflow Status issues forks stars GitHub license

A Laravel database export console command. Supports MySQL, PostgreSQL and SQL Server.

Requirements

  • PHP 8.5
  • Laravel 13.0

Installation

You can install the package via composer:

composer require tomshaw/laravel-database-export

Usage

You can use the command like this:

php artisan db:export

You can also provide a password for the zip file:

php artisan db:export --password=yourpassword

Configuration

The command uses the following configuration keys:

  • database-export.disks.backup_filename: The base filename for the backup.
  • database-export.disks.backup_directory: The directory where the backup files will be stored.

Description

The Database Export command does the following:

  1. Checks if the ZipArchive class is available.
  2. Retrieves the database connection details from the environment variables.
  3. Builds the command to export the database based on the database connection.
  4. Executes the command and saves the output to a file.
  5. Creates a zip file and adds the output file to it.
  6. Deletes the output file.
  7. Prints a success message.

Support

If you have any issues or questions, please open an issue on the GitHub repository.

Contributing

Please see CONTRIBUTING for details.

License

The MIT License (MIT). See License File for more information.

统计信息

  • 总下载量: 566
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固