Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

R4IT Admin Plugin Boilerplate – Accelerating custom Admin UI development (MIT)

admin plugins

Started by ready-4-IT 6 months ago · 1 replies · 715 views
6 months ago

Hi everyone,

I’ve noticed that while Grav is amazingly flexible, setting up a clean and scalable architecture for complex Admin UI plugins can still be quite a hurdle. After spending the last few months refactoring and optimizing my own workflow, I’ve decided to release the R4IT Admin Plugin Boilerplate under the MIT License.

This isn't just a simple scaffold; it’s a production-ready foundation that I’m currently using for my upcoming projects Graygate and ConsentGear.

What’s inside:

  • A clean separation of logic and UI specifically for the Grav Admin.

  • Optimized structures for handling custom views and configurations.

  • Refined over several months to ensure maintainability.

Check it out here: https://www.ready-4-it.com/de/produktoverview/r4it_admin_plugin_boilerplate

Feedback & Collaboration: I would be honored to get some eyes on this from the Grav Team (@rhuk, @flaviocopes) or any seasoned developers here. As I plan to build my commercial tools on this base, I’m looking for feedback on:

  • Architectural improvements for better Grav integration.

  • Security hardening or performance tips.

I hope this helps others to build professional Admin extensions faster!

Cheers,
Nejat

3 weeks ago
TXT
Hi everyone,

We are happy to announce v0.2.5 of the R4IT Admin Plugin Boilerplate for Grav CMS!

If you build custom admin tools or backend plugins for Grav, this boilerplate provides a clean PSR-4 structure, Twig admin integration, multi-language support (DE, EN, FR, LB, PT, TR), and automated setup tooling.

### 🌟 Highlights of v0.2.5

#### 1. Automated Plugin Renaming Scripts

Renaming a boilerplate manually can be tedious and error-prone. With v0.2.5, you can rename all PHP classes, namespaces, Twig routes, CSS assets, and translation keys with a single command:

* PowerShell (Windows):

```powershell

.\scripts\rename-plugin.ps1 -NewName "r4it_my_custom_plugin"

  • Bash (Linux / macOS / Git Bash):

    TXT
    bash
    

    chmod +x ./scripts/rename-plugin.sh

    ./scripts/rename-plugin.sh r4it_my_custom_plugin

2. Comprehensive Renaming Guide

We added a step-by-step guide (howto.en/renaming.en.md) detailing the exact naming convention matrix used across Grav plugins:

  • snake_case: Folder names, main .php/.yaml files.
  • kebab-case: Admin URL routes (/admin/r4it-my-plugin), Twig templates.
  • PascalCase: PHP Class names & PSR-4 namespaces.
  • UPPERCASE: Internationalization keys (PLUGIN_R4IT_MY_PLUGIN).

3. Strict PHP 8.1+ Compatibility

Fixed UTF-8 BOM headers that previously triggered 500 errors on strict PHP type declarations.


🔗 Links & Resources

  • GitHub Repository: timejunky/r4it_admin-plugin_boilerplate_grav
  • v0.2.5 Release Notes: Release Tag 0.2.5
  • Renaming Guide: renaming.en.md

Feel free to check it out, open issues, or share your thoughts!

Suggested topics

Topic Participants Replies Views Activity
General · by jeremycherfas, 4 days ago
2 86 14 hours ago
General · by Old Man Umby, 2 days ago
1 58 2 days ago
General · by Sebastian, 4 days ago
1 79 4 days ago
General · by Andy Miller, 2 weeks ago
0 215 2 weeks ago
General · by jean-louis67, 1 month ago
2 451 1 month ago