Recommend this page to a friend! |
![]() ![]() |
Info | ![]() |
![]() |
![]() ![]() |
Reputation | Support forum | Blog (1) | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2021-01-14 (1 month ago) ![]() | Not yet rated by the users | Total: 89 This week: 6 | All time: 9,571 This week: 50![]() |
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 |
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.