gammamatrix / playground-matrix
游乐场:本包提供了使用游乐场矩阵(一个项目管理系统)的模型。
dev-develop / 73.x-dev
2024-08-18 05:24 UTC
Requires
- php: ^8.2
- gammamatrix/playground: *
Requires (Dev)
Suggests
- gammamatrix/playground-matrix-api: Provides an API, without a UI, to interact with the models provided in this package.
- gammamatrix/playground-matrix-resource: Provides a resource API and optional Blade UI to interact with the models provided in this package.
This package is auto-updated.
Last update: 2024-09-18 05:37:07 UTC
README
游乐场矩阵是一个用于 Laravel 应用的包。
本包提供了使用游乐场矩阵(一个项目管理工具)的模型。
更多关于使用 游乐场矩阵的信息,请参阅 Read the Docs:游乐场文档。
安装
此包需要与 playground-matrix-api(无 UI 的 API) 或 playground-matrix-resource(带有 UI 的 API) 一起使用。
如果您不需要 API,只需模型,则可以通过以下方式安装此包:
您可以通过 composer 安装此包
composer require gammamatrix/playground-matrix
artisan:about
游乐场矩阵通过 artisan about 命令提供信息。
配置
默认情况下禁用了迁移。此包有时可能安装在另一个系统处理迁移的位置。
查看发布的配置文件内容:config/playground-matrix.php
您可以使用以下命令发布配置文件:
php artisan vendor:publish --provider="Playground\Matrix\ServiceProvider" --tag="playground-config"
环境变量
- 如果迁移已导出到您的应用程序中,则迁移的加载选项不起作用。加载控制由包 ServiceProvider. 处理。
模型
迁移
默认情况下禁用所有 database/migrations。
- 注意:将创建 16 个表,它们确实有索引和唯一约束定义;然而,这次发布没有包含外键约束迁移。
您可以使用以下命令发布迁移文件:
php artisan vendor:publish --provider="Playground\Matrix\ServiceProvider" --tag="playground-migrations"
Cloc
composer cloc
➜ playground-matrix git:(feature/GH-25) ✗ composer cloc
> cloc --exclude-dir=node_modules,output,vendor .
148 text files.
118 unique files.
32 files ignored.
github.com/AlDanial/cloc v 1.98 T=0.29 s (405.5 files/s, 234827.7 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
JSON 18 0 0 49172
PHP 92 1285 4715 12506
YAML 1 5 0 275
XML 3 0 7 215
Markdown 3 44 0 102
INI 1 3 0 12
-------------------------------------------------------------------------------
SUM: 118 1337 4722 62282
-------------------------------------------------------------------------------
PHPStan
在第 9 级别上测试
config/database/src/tests/Feature/tests/Unit/
composer analyse
编码规范
composer format
测试
composer test
更改日志
请参阅 CHANGELOG 了解最近更改的信息。
致谢
许可证
MIT 许可证(MIT)。有关更多信息,请参阅 许可证文件。
