intelrx/rapidkit

IntelRx/RapidKit 通过简化资源创建和提供基本工具来加速 Laravel 开发。高效模块化应用程序,减少样板代码并增强可伸缩性。通过 Composer 安装,快速集成并根据项目特定需求进行定制

1.9.1.1 2024-07-22 21:18 UTC

README

RAPIDKIT -> 支持 LARAVEL 11.X

RAPIDKIT for Laravel 是一组预构建的功能集合,旨在加速 Web 应用程序开发。它提供了一套强大的命令来模块化项目,使开发者能够快速创建高度可定制的应用程序。

# 关键特性

  • 模块化结构:轻松模块化您的 Laravel 项目以实现更好的组织和可伸缩性。
  • 预构建功能:包含丰富的预构建功能,以快速启动开发。
  • 可定制性:允许进行广泛的定制以适应特定项目需求。
  • 快速开发:通过提供现成的组件和实用程序来加速开发过程。

# 安装

composer require intelrx/rapidkit

# Artisan 命令

自动包安装和配置

php artisan rapid:install

开发中很有用的命令

> php artisan rapid:make Country --path=Master   Create separate module resources

# 数据库备份命令

 > php artisan backup:clean               Clean it by configured number of days.
 > php artisan backup:list                Display a list of all backups.
 > php artisan backup:monitor             Monitor the health of all backups.
 > php artisan backup:run                 Run the backup.
 > php artisan backup:run --only-db       Only Database backup
 > php artisan backup:run --only-files    FileSystem backup

# TELESCOPE 命令

  > php artisan telescope:clear               Delete all Telescope data from storage
  > php artisan telescope:pause               Pause all Telescope watchers
  > php artisan telescope:prune               Prune stale entries from the Telescope database
  > php artisan telescope:prune --hours=48    Prune stale entries by time
  > php artisan telescope:publish             Publish all of the Telescope resources
  > php artisan telescope:resume              Unpause all Telescope watchers

# 导出和导入 Excel 命令

  > php artisan make:import UsersImport --model=User
  > php artisan make:export UsersExport --model=User

# 运行测试

  <testsuites>
        ... phpunit.xml
        
      <testsuite name="Rapidkit">
          <directory>./vendor/intelrx/rapidkit/tests/Unit</directory>
      </testsuite>
  </testsuites>