定制 strtob/yii2-excel-template-sql-export 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

strtob/yii2-excel-template-sql-export

Composer 安装命令:

composer require strtob/yii2-excel-template-sql-export

包简介

Yii2 module to manage sql commands, which can be export in one MS Excel worksheet

README 文档

README

Overview

The Yii2 Excel Template SQL Export module allows you to export the results of raw SQL queries directly into an Excel file. This module is built on the Yii2 framework and leverages the PhpSpreadsheet library to handle Excel file creation. Additionally, it provides a user-friendly graphical interface for managing SQL queries.

Features

  • Export multiple SQL queries into a single Excel file.
  • Dynamic worksheet creation based on SQL query results.
  • Option to filter exported queries using specific IDs.
  • Exception handling for graceful error responses.
  • GUI for easy management of SQL queries, including adding, editing, and deleting queries.

Installation

To install this module, follow these steps:

Add the module to your project: Use Composer to install the module. Run the following command in your terminal:

   composer require strtob/yii2-excel-template-sql-export

create the tables via migration

php yii migrate --migrationPath=@vendor/strtob/yii2-excel-template-sql-export/migrations
php yii migrate

or

'components' => [
    // Other components...
    'migrator' => [
        'class' => 'yii\db\Migration',
        'migrationPath' => [          
            '@vendor/strtob/yii2-excel-template-sql-export/migrations', // Add your module's migrations
        ],
    ],
],

and adjust your config

 'modules' => [
        'export' => [
            'class' => \strtob\yii2ExcelTemplateSqlExport\Module::class,
        ],

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-10-17