adjai / backender
Simple backend
0.0.148
2024-08-01 17:38 UTC
Requires
- ext-json: *
- ext-mbstring: *
- ext-zip: *
- firebase/php-jwt: ^5.5
- phpmailer/phpmailer: ^6.5
- rmccue/requests: ^2.0.2
- thingengineer/mysqli-database-class: ^2.9.4
This package is auto-updated.
Last update: 2026-05-29 02:12:54 UTC
README
INSTALLATION
composer require adjai/backender
Then run installation:
php vendor/adjai/backender/install.php
After installation all required directories and files will be created. If you had your main index.php file before, then add content to it:
include_once 'vendor/autoload.php';
$backend = new \adjai\backender\core\Backender();
USING
Add controller TestController.php to controllers directory. Fill file with following content:
<?php
namespace app\controllers;
class TestController extends \adjai\backender\core\Controller {
public function actionDo() {
die('do action');
}
}
USING CLI
If your backend is located in "backend" directory and you want to execute the "CONTROLLER"'s "METHOD" run it the following way:
php PATH_TO_INDEX/index.php /backend/CONTROLLER/METHOD/