gammamatrix/playground-blade 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

gammamatrix/playground-blade

Composer 安装命令:

composer require gammamatrix/playground-blade

包简介

Playground: Provides Blade UI handling.

README 文档

README

Playground CI Workflow Test Coverage PHPStan Level 10 src and tests

The Playground Blade package for Laravel applications.

This package provides Blade UI handling.

Read more on using Playground Blade at Read the Docs: Playground Documentation.

Installation

You can install the package via composer:

composer require gammamatrix/playground-blade

Configuration

You can publish the config file with:

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

See the contents of the published config file: config/playground-blade.php

Read more on using Environment Variables at the Read the Docs for Playground Blade.

UI Layouts

NOTE: Using Blade is not required to use Playground, it just an option, such as Vue, React or TypeScript.

The configuration in config/playground-blade.php has a section for frontend assets. If you would like to add more assets, CSS or JavaScript, publish the configuration and add them to the libs section.

Assets may be loaded into either head or they will be added to the end of the body.

By default, the following libraries are loaded.

Optionally, a page may load:

  • CKEditor 5 an advanced WYSIWYG editor for forms.

Assets

If you are using the Playground Blade UI, you can publish the JS assets with:

php artisan vendor:publish --tag playground-blade-js
  • These Javascript assets, resources/js/playground-blade.js, provide simple helpers for features such as Bootstrap Form Validation and loading CKEditor for textarea elements on forms.

Publishes CSS:

php artisan vendor:publish --tag playground-blade-css

You can publish the layouts file with:

php artisan vendor:publish --tag playground-blade-layouts

Components may also be published:

php artisan vendor:publish --tag playground-blade-components

Error pages are available at:

php artisan vendor:publish --tag playground-blade-errors

Testing

composer test

Cloc

composer cloc
➜  playground-blade git:(develop) ✗ composer cloc
> cloc --exclude-dir=output,vendor .
     154 text files.
     118 unique files.
      38 files ignored.

github.com/AlDanial/cloc v 1.98  T=0.10 s (1143.8 files/s, 81948.0 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Blade                           49            397             13           2700
PHP                             47            466            518           2524
CSS                             10            139            141            461
SVG                              2              2              2            301
YAML                             1              5              0            275
XML                              3              0              7            221
Markdown                         3             47              0             98
JSON                             1              0              0             65
JavaScript                       1              0             35             22
INI                              1              3              0             12
-------------------------------------------------------------------------------
SUM:                           118           1059            716           6679
-------------------------------------------------------------------------------

PHPStan

Tests at level 9 on:

  • config/
  • resources/views/
  • src/
  • tests/Feature/
  • tests/Unit/
composer analyse

About

Playground Blade provides information in the artisan about command.

screenshot of artisan about command with Playground Blade.

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/playground-blade 适用场景与选型建议

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

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

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

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

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-08