rudra/controller

Rudra framework

Maintainers

Package info

github.com/Jagepard/Rudra-Controller

pkg:composer/rudra/controller

Statistics

Installs: 468

Dependents: 1

Suggesters: 0

Stars: 1

Open Issues: 0

v26.7 2026-06-23 11:56 UTC

This package is auto-updated.

Last update: 2026-06-26 07:11:27 UTC


README

PHPunit Maintainability CodeFactor Coverage Status

Rudra-Controller | API

Lightweight, Transparent, and Secure MVC Implementation

A high-performance controller abstraction for the Rudra Framework. Designed with a "no-magic" philosophy, strict typing, and enterprise-grade security out-of-the-box.

🧩 Lifecycle Hooks

Structured execution flow to maintain separation of concerns without layer pollution:

  • init() — Initialization of dependencies.
  • before() — Pre-action checks and routing.
  • after() — Post-action handling.

🚀 Installation

Install via Composer (assuming the package registry):

composer require rudra/controller

📖 Quick Start

<?php declare(strict_types=1);

namespace App\Containers\Container\Controller;

class SomeController extends ContainerController
{
    public function index(): void
    {
        // Your logic here - CSRF already protected
        echo "Hello, Rudra!";
    }
}

License

This project is licensed under the Mozilla Public License 2.0 (MPL-2.0) — a free, open-source license that:

  • Requires preservation of copyright and license notices,
  • Allows commercial and non-commercial use,
  • Requires that any modifications to the original files remain open under MPL-2.0,
  • Permits combining with proprietary code in larger works.

📄 Full license text: LICENSE
🌐 Official MPL-2.0 page: https://mozilla.org/MPL/2.0/