gammamatrix/playground-crm-resource

Playground:为与Playground CRM(Laravel应用程序的客户关系管理系统)交互提供API和Blade UI。

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

This package is auto-updated.

Last update: 2024-09-17 20:25:23 UTC


README

Playground CI Workflow Test Coverage PHPStan Level 9

Playground:CRM资源包。

文档

Swagger

此应用程序提供Swagger文档: swagger.json

  • 端点模型支持锁定、强制删除垃圾、恢复、修订等。
  • 索引端点支持高级查询过滤。

Swagger API文档是用npm构建的。

  • npm仅用于生成文档,操作CMS API时不需要。

请参阅 package.json 的要求。

安装npm。

npm install

构建文档以生成 swagger.json 配置。

npm run docs

文档

安装

您可以通过composer安装此包

composer require gammamatrix/playground-crm-resource

配置

默认情况下,所有选项都处于禁用状态。

请参阅已发布配置文件的内容: config/playground-crm-resource.php

您可以使用以下命令发布配置文件

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

Cloc

composer cloc
➜  playground-crm-resource git:(develop) ✗ composer cloc
> cloc --exclude-dir=node_modules,output,vendor .
     336 text files.
     241 unique files.
      96 files ignored.

github.com/AlDanial/cloc v 1.98  T=0.37 s (656.1 files/s, 101701.6 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
JSON                             5              0              0          18420
PHP                            157           1381           1987           7585
YAML                            52              5              0           5120
Blade                           20            126              7           2365
XML                              3              0              7            215
Markdown                         3             37              0             85
INI                              1              3              0             12
-------------------------------------------------------------------------------
SUM:                           241           1552           2001          33802
-------------------------------------------------------------------------------

PHPStan

在第9级上测试

  • config/
  • lang/
  • routes/
  • src/
  • tests/Feature/
  • tests/Unit/
composer analyse

编码标准

composer format

测试

composer test --parallel

变更日志

请参阅 CHANGELOG 了解最近更改的信息。

许可证

MIT许可证(MIT)。有关更多信息,请参阅 许可证文件