定制 gammamatrix/site-laravel 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

gammamatrix/site-laravel

Composer 安装命令:

composer create-project gammamatrix/site-laravel

包简介

Playground: This package provides a Laravel (users.id is an integer) site using Sanctum for authentication and authorization and utilizes Blade for the UI. A Content Management System is also provided, along with user and settings management.

README 文档

README

Playground CI Workflow Test Coverage PHPStan Level 9 src and tests

This package includes a standard Laravel installation with the playground-site-blade package.

  • This uses a standard Laravel user with an incrementing ID.
  • To use a UUID for the primary key on the User model, use site-playground instead.

Read more on using Site: Laravel at Read the Docs: Playground Documentation.

This package may be installed with composer create-project

composer create-project gammamatrix/site-laravel site-example --stability dev
  • NOTE A stable version needs to be released for create-project

Installed Playground Packages

Package Description
playground-admin-resource Provide the Admin UI to manage users and settings.
playground-cms-resource Provide the CMS UI for the Playground Content Management System.
playground-login-blade Provides endpoints a Blade UI for authentication, authorization, verification and credential management.
playground-site-blade Provides a standard website with an index, dashboard, sitemap, theme handling and CMS integration.

Installed Support Playground Packages

Package Description
playground A base package for Laravel integration.
playground-admin Provide the Settings models for playground-admin-resource.
playground-auth Provide authentication and authorization handling for Laravel applications. Allows using Sanctum.
playground-blade Provides Blade UI handling for login, resource and site packages.
playground-cms Provide the CMS models for playground-cms-resource.
playground-http Provide HTTP content and filter handling for controllers and requests.
playground-test A test helper for Playground packages.
composer require --dev gammamatrix/playground-test
composer require gammamatrix/playground-site-blade
composer require gammamatrix/playground-login-blade
composer require gammamatrix/playground-admin-resource
php artisan install:api
  • Installs Sanctum
  • Update the user model to enable Sanctum: use HasApiTokens

NOTE: Disable default Laravel welcome route.

Testing

This application supports running integration tests with the installed Playground packages.

<testsuites>
  <testsuite name="Unit">
    <directory>tests/Unit</directory>
    <directory>vendor/gammamatrix/playground/tests/Unit</directory>
    <directory>vendor/gammamatrix/playground-auth/tests/Unit</directory>
    <directory>vendor/gammamatrix/playground-blade/tests/Unit</directory>
    <directory>vendor/gammamatrix/playground-admin/tests/Unit</directory>
    <directory>vendor/gammamatrix/playground-admin-resource/tests/Unit</directory>
    <directory>vendor/gammamatrix/playground-cms/tests/Unit</directory>
    <directory>vendor/gammamatrix/playground-cms-resource/tests/Unit</directory>
    <directory>vendor/gammamatrix/playground-http/tests/Unit</directory>
    <directory>vendor/gammamatrix/playground-test/tests/Unit</directory>
  </testsuite>
  <testsuite name="Feature">
    <directory>tests/Feature</directory>
    <directory>vendor/gammamatrix/playground/tests/Feature</directory>
    <directory>vendor/gammamatrix/playground-auth/tests/Feature</directory>
    <directory>vendor/gammamatrix/playground-blade/tests/Feature</directory>
    <directory>vendor/gammamatrix/playground-admin/tests/Feature</directory>
    <directory>vendor/gammamatrix/playground-admin-resource/tests/Feature</directory>
    <directory>vendor/gammamatrix/playground-cms/tests/Feature</directory>
    <directory>vendor/gammamatrix/playground-cms-resource/tests/Feature</directory>
    <directory>vendor/gammamatrix/playground-login-blade/tests/Feature</directory>
    <directory>vendor/gammamatrix/playground-http/tests/Feature</directory>
    <directory>vendor/gammamatrix/playground-site-blade/tests/Feature</directory>
    <directory>vendor/gammamatrix/playground-test/tests/Feature</directory>
  </testsuite>
</testsuites>

<source>
  <include>
    <directory>app</directory>
    <directory suffix=".php">vendor/gammamatrix/playground/src</directory>
    <directory suffix=".php">vendor/gammamatrix/playground-auth/src</directory>
    <directory suffix=".php">vendor/gammamatrix/playground-blade/src</directory>
    <directory suffix=".php">vendor/gammamatrix/playground-admin/src</directory>
    <directory suffix=".php">vendor/gammamatrix/playground-admin-resource/src</directory>
    <directory suffix=".php">vendor/gammamatrix/playground-cms/src</directory>
    <directory suffix=".php">vendor/gammamatrix/playground-cms-resource/src</directory>
    <directory suffix=".php">vendor/gammamatrix/playground-login-blade/src</directory>
    <directory suffix=".php">vendor/gammamatrix/playground-site-blade/src</directory>
    <directory suffix=".php">vendor/gammamatrix/playground-http/src</directory>
    <directory suffix=".php">vendor/gammamatrix/playground-test/src</directory>
  </include>
</source>
composer test

Test examples:

phpunit --coverage-text --filter ModelTest
phpunit --coverage-text --filter RouteTest
phpunit --coverage-text --filter InstanceTest
phpunit --coverage-text --filter Policy
phpunit --coverage-text --filter Resource
phpunit --coverage-text  --filter Login

PHPStan

Tests at level 9 on:

  • app/
  • config/
  • database/
  • resources/views/
  • tests/Feature/
  • tests/Unit/
  • and on Playground packages.
composer analyse

Coding Standards

composer format

artisan about

Playground packages provides information in the artisan about command.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.

gammamatrix/site-laravel 适用场景与选型建议

gammamatrix/site-laravel 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 03 月 25 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「cms」 「site」 「login」 「auth」 「laravel」 「playground」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 gammamatrix/site-laravel 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 gammamatrix/site-laravel 我们能提供哪些服务?
定制开发 / 二次开发

基于 gammamatrix/site-laravel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 23
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-25