Recommend this page to a friend! |
![]() |
Info | Documentation | ![]() |
![]() |
![]() |
Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 107 | All time: 9,695 This week: 71![]() |
Version | License | PHP version | Categories | |||
gectrl 1.0 | GNU Lesser Genera... | 7 | Design Patterns, PHP 7 |
[comment]: # (This file is part of Gectrl, PHP Genereric controller. Copyright 2021 Kjell-Inge Gustafsson, kigkonsult, All rights reserved, licence LGPLv3)
Gectrl is a PHP generic controller class package
The controller provides coordination logic
The controller delegates application logic to actionClasses
Simpler (http/html) example
<?php
namespace Kigkonsult\Gectrl;
use ActionSrc\PrepAction;
use ActionSrc\CreateAction;
use ActionSrc\ReadAction;
use ActionSrc\UpdateAction;
use ActionSrc\DeleteAction;
use ActionSrc\CatchUpAction;
require 'vendor/autoload.php';
...
$package = Gectrl::init( $config, $logger )
->setActionClasses(
[
PrepAction::class,
CreateAction::class,
ReadAction::class,
UpdateAction::class,
DeleteAction::class,
CatchUpAction::class,
]
)
->main( $_REQUEST );
...
echo $package->getOutput();
For more detailed usage, read [Gectrl], [ActionClassInterface] and [Package] docs.
[Composer], from the Command Line:
composer require kigkonsult/gectrl
In your composer.json:
{
"require": {
"kigkonsult/gectrl": "dev-master"
}
}
Donation using [paypal.me/kigkonsult] are appreciated. For invoice, [e-mail]</a>.
Gectrl is licensed under the LGPLv3 License.
[ActionClassInterface]:docs/ActionClassInterface.md [Composer]:https://getcomposer.org/ [e-mail]:mailto:ical@kigkonsult.se [Gectrl]:docs/Gectrl.md [paypal.me/kigkonsult]:https://paypal.me/kigkonsult [Package]:docs/Package.md
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() ![]() |
Aux. | Auxiliary script | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Lic. | License text | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Doc. | Read me |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
![]() |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.