PHPackages                             lindemannrock/craft-plugin-base - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lindemannrock/craft-plugin-base

ActiveYii2-module[Utility &amp; Helpers](/categories/utility)

lindemannrock/craft-plugin-base
===============================

Common utilities and building blocks for LindemannRock Craft CMS plugins

5.32.0(2d ago)065920MITPHPPHP ^8.2CI passing

Since Jan 5Pushed 2d agoCompare

[ Source](https://github.com/LindemannRock/craft-plugin-base)[ Packagist](https://packagist.org/packages/lindemannrock/craft-plugin-base)[ RSS](/packages/lindemannrock-craft-plugin-base/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)Dependencies (24)Versions (39)Used By (20)

LindemannRock Plugin Base
=========================

[](#lindemannrock-plugin-base)

[![Latest Version](https://camo.githubusercontent.com/91b1c07ff5f7d4a5a43832415c3386d260411f65edfbbd535a8617528c54ab18/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c696e64656d616e6e726f636b2f63726166742d706c7567696e2d626173652e737667)](https://packagist.org/packages/lindemannrock/craft-plugin-base)[![Craft CMS](https://camo.githubusercontent.com/f18a31fc0b2af9dd9db8553f67574c4e2f6b091d59d2c9dbe2c11e418a41829e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4372616674253230434d532d352e31302b2d6f72616e67652e737667)](https://craftcms.com/)[![PHP](https://camo.githubusercontent.com/5fe05c705bf034839bda7651781e4d0a9d42f4a840478ca5e343873a0361bb89/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322b2d626c75652e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/92b050ba6fd2eca3f69ea92035f33b653d745a9c36515b4e01159a152aaaae67/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c696e64656d616e6e726f636b2f63726166742d706c7567696e2d626173652e737667)](LICENSE.md)

Common utilities and building blocks for LindemannRock Craft CMS plugins.

Features
--------

[](#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 Utilities** — `IntegrationTestCase` 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
------------

[](#requirements)

- PHP 8.2+
- Craft CMS 5.10+

Installation
------------

[](#installation)

```
composer require lindemannrock/craft-plugin-base
```

Documentation
-------------

[](#documentation)

Full documentation is available in the [docs](docs/) folder.

Support
-------

[](#support)

- **Issues**: [GitHub Issues](https://github.com/LindemannRock/craft-plugin-base/issues)
- **Email**:

License
-------

[](#license)

This plugin is licensed under the MIT License. See [LICENSE.md](LICENSE.md) for details.

---

Developed by [LindemannRock](https://lindemannrock.com)

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance99

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~5 days

Total

37

Last Release

2d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/81223527?v=4)[Lindemann](/maintainers/bhlindemann)[@bhlindemann](https://github.com/bhlindemann)

---

Top Contributors

[![bhlindemann](https://avatars.githubusercontent.com/u/81223527?v=4)](https://github.com/bhlindemann "bhlindemann (531 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (21 commits)")

---

Tags

craft-cmscraft-plugincraftcmsphpplugin-baseshared-libraryutilitieshelperscmsbaseutilitiesCraftcraftcmstraitscraft-module

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lindemannrock-craft-plugin-base/health.svg)

```
[![Health](https://phpackages.com/badges/lindemannrock-craft-plugin-base/health.svg)](https://phpackages.com/packages/lindemannrock-craft-plugin-base)
```

###  Alternatives

[craftcms/feed-me

Import content from XML, RSS, CSV or JSON feeds into entries, categories, Craft Commerce products, and more.

293952.6k33](/packages/craftcms-feed-me)[verbb/formie

The most user-friendly forms plugin for Craft.

102393.6k69](/packages/verbb-formie)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54681.3k18](/packages/solspace-craft-freeform)[verbb/comments

Add comments to your site.

13753.9k](/packages/verbb-comments)[verbb/navigation

Create navigation menus for your site.

92705.0k18](/packages/verbb-navigation)[verbb/vizy

A flexible visual editor field for Craft.

4250.4k](/packages/verbb-vizy)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
