PHPackages                             kigkonsult/gectrl - 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. [Framework](/categories/framework)
4. /
5. kigkonsult/gectrl

ActiveLibrary[Framework](/categories/framework)

kigkonsult/gectrl
=================

PHP generic controller for MVC, implements the strategy pattern

v1.8.5(3y ago)1111LGPL-3.0-or-laterPHPPHP &gt;=8.0

Since Jun 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/iCalcreator/Gectrl)[ Packagist](https://packagist.org/packages/kigkonsult/gectrl)[ Fund](https://paypal.me/kigkonsult)[ RSS](/packages/kigkonsult-gectrl/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (5)Used By (0)

Gectrl
======

[](#gectrl)

Gectrl is a PHP generic controller class package

- Supports the MVC software design pattern
- Distinguish controller and application logic using a strategy pattern

The controller

- provides coordination logic
- delegates application logic to actionClasses
- using implementations of the (strategy) [ActionClassInterface](docs/ActionClassInterface.md),
- invoking of actionClass condition **evaluate** and opt, logic **doAction** methods,
- passing all data information in an encapsulated [Package](docs/Package.md) class instance

    - input, output, config, logger etc

Usage
-----

[](#usage)

#### Basic

[](#basic)

Simpler (http/html) example

```
