gammamatrix/playground-crm

游乐场:为游乐场客户关系管理系统提供CRM模型。

dev-develop / 73.x-dev 2024-08-16 07:17 UTC

This package is auto-updated.

Last update: 2024-09-16 07:32:13 UTC


README

Playground CI Workflow Test Coverage PHPStan Level 9

Playground CRM是Laravel应用程序的包。

此应用程序提供了使用Playground CRM(客户关系管理器)的模型。

更多关于在Playground CRM at Read the Docs: Playground Documentation上使用的信息。

安装

注意:此包由

使用composer安装此包以获取对CRM模型的访问权限

composer require gammamatrix/playground-crm

artisan:about

Playground CRM在artisan about命令中提供信息。

配置

默认情况下禁用迁移。有时可能安装在其他系统处理迁移的地方。

查看已发布的配置文件内容:config/playground-crm.php

您可以使用以下方法发布配置文件:

php artisan vendor:publish --provider="Playground\Crm\ServiceProvider" --tag="playground-config"

Cloc

composer cloc
➜  playground-crm git:(develop) ✗ composer cloc
> cloc --exclude-dir=node_modules,output,vendor .
      60 text files.
      49 unique files.
      12 files ignored.

github.com/AlDanial/cloc v 1.98  T=0.12 s (403.2 files/s, 152885.2 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
JSON                             7              0              0          13958
PHP                             34            306            983           2680
YAML                             1              5              0            275
XML                              3              0              7            215
Markdown                         3             43              0             93
INI                              1              3              0             12
-------------------------------------------------------------------------------
SUM:                            49            357            990          17233
-------------------------------------------------------------------------------

环境变量

  • 如果迁移已导出到您的应用程序,则迁移的加载选项不起作用。加载控制由包ServiceProvider.处理。

模型

此包包括factories、模型和migrations,用于

迁移

默认情况下禁用所有迁移。

查看已发布的配置文件内容:database/migrations

  • 注意:将创建4个表,它们确实有索引和唯一约束定义;然而,此版本尚未包含外键约束迁移。

您可以使用以下方法发布迁移文件:

php artisan vendor:publish --provider="Playground\Crm\ServiceProvider" --tag="playground-migrations"

PHPStan

在第9级进行测试

  • config/
  • database/
  • src/
  • tests/Feature/
  • tests/Unit/
composer analyse

编码标准

composer format

测试

composer test

变更日志

请参阅CHANGELOG获取有关最近更改的更多信息。

致谢

许可证

MIT许可证(MIT)。请参阅许可证文件获取更多信息。