定制 lindemannrock/craft-plugin-base 二次开发

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

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

lindemannrock/craft-plugin-base

Composer 安装命令:

composer require lindemannrock/craft-plugin-base

包简介

Common utilities and building blocks for LindemannRock Craft CMS plugins

README 文档

README

Latest Version Craft CMS PHP License

Common utilities and building blocks for LindemannRock Craft CMS plugins.

Features

  • Edition Support — standardized Lite/Standard/Pro edition tiers for the Plugin Store
  • Settings Traits — database persistence, config file overrides, custom display names
  • DateFormatHelper — centralized date/time formatting with timezone-aware SQL expressions
  • DateRangeHelper — standardized date range selection, bounds, and query filtering
  • ColorHelper — 18-color palette and 16 built-in color sets for consistent styling
  • ExportHelper — CSV, JSON, and Excel export with configurable format availability
  • GeoHelper — ISO 3166-1 country lookups, dial codes, and phone validation
  • DbHelper — DB-agnostic JSON extraction and GROUP_CONCAT
  • GqlHelper — schema permission checks and site argument resolution for plugin-owned GraphQL queries
  • BooleanHelper — normalize boolean-like config, env, POST, and HTML attribute values
  • ExperimentalFeatureHelper — env-flag gating for internal or launch-deferred features
  • CsvImportHelper — CSV upload parsing with configurable options
  • CpNavHelper — CP subnav building with permission checks
  • LabelHelper — strip numbering and truncate long field labels for compact UI contexts (|lrShortLabel Twig filter)
  • Device Detection — standardized UA parsing via Matomo DeviceDetector
  • GeoLookup — IP geolocation via configurable providers (ip-api.com, ipapi.co, ipinfo.io)
  • CP Table Layout — reusable table pages with filters, search, pagination, and AJAX refresh
  • CP Analytics Layout — analytics dashboards with tabs, charts, stat boxes, and date filters
  • Twig Extensions — 30+ filters and functions for dates, colors, exports, geo, and plugin detection
  • 19 Twig Components — badge, stat-box, dashboard-widget helpers, info-box, export-menu, row-actions, filters, and more
  • Testing UtilitiesIntegrationTestCase abstract base with component swap/restore, generic DB helpers, marker cleanup, fixture lifecycle helpers for elements/temp paths, queue drain, and an external-state cleanup hook; plus a bootstrap() function and phpunit.xml.dist template for quick test-suite setup in consumer plugins

Requirements

  • PHP 8.2+
  • Craft CMS 5.10+

Installation

composer require lindemannrock/craft-plugin-base

Documentation

Full documentation is available in the docs folder.

Support

License

This plugin is licensed under the MIT License. See LICENSE.md for details.

Developed by LindemannRock

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固