gammamatrix / playground
Playground:用于Laravel集成的基包。
dev-develop / 73.x-dev
2024-07-08 19:13 UTC
Requires
- php: ^8.2
- ext-intl: *
- ezyang/htmlpurifier: ^4.16
- illuminate/auth: ^11.0
- illuminate/console: ^11.0
- illuminate/contracts: ^11.0
- illuminate/database: ^11.0
- illuminate/http: ^11.0
- illuminate/routing: ^11.0
- illuminate/support: ^11.0
- illuminate/translation: ^11.0
- illuminate/validation: ^11.0
- illuminate/view: ^11.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-09-08 19:37:13 UTC
README
这是Playground的基包。
本包为Laravel包提供模型处理。
- Playground允许使用Laravel的有序UUID作为主键。
- Playground及其子包中的配置允许定义用户模型、表和主键类型:`increments` 或 `uuid`。
- 包与和中间件、角色、策略、权限、Sanctum等兼容,并经过测试。
有关如何使用Playground的更多信息,请参阅Read the Docs for Playground。
安装
您可以通过composer安装此包
composer require gammamatrix/playground
配置
您可以使用以下命令发布配置文件
php artisan vendor:publish --provider="GammaMatrix\Playground\ServiceProvider" --tag="playground-config"
查看已发布的配置文件内容: config/playground.php
使用 artisan about
Playground通过`artisan about`命令提供信息。
环境变量
- 如果迁移已导出到您的应用程序,则迁移的加载选项不会生效。加载控制由包中的`ServiceProvider`处理。
迁移
此包中提供的迁移用于与Orchestra Testbench的PHPunit 11特性测试。
- 它们不会在软件构建中导出。
Cloc
composer cloc
➜ playground git:(develop) ✗ composer cloc
> cloc --exclude-dir=output,vendor .
98 text files.
62 unique files.
38 files ignored.
github.com/AlDanial/cloc v 1.98 T=0.11 s (582.6 files/s, 57515.8 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
PHP 52 921 856 3591
YAML 1 5 0 275
XML 3 0 9 222
JSON 2 0 0 103
Markdown 3 42 0 82
INI 1 3 0 12
-------------------------------------------------------------------------------
SUM: 62 971 865 4285
-------------------------------------------------------------------------------
PHPStan
在第9级进行测试
config/
database/
src/
tests/Feature/
tests/Unit/
composer analyse
编码标准
composer format
测试
composer test
变更日志
请参阅CHANGELOG以获取有关最近更改的更多信息。
致谢
许可证
MIT许可证(MIT)。请参阅许可证文件以获取更多信息。