adjai/backender

Simple backend

Maintainers

👁 adjai

Package info

github.com/mx-studio/backender

pkg:composer/adjai/backender

Statistics

Installs: 247

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

0.0.148 2024-08-01 17:38 UTC

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

GPL-2.0-or-later a3ac5a13863f6440b8a9702fdb24da2d8c38f73e

  • mx-studio <bin_rob.woop@mail.ru>

This package is auto-updated.

Last update: 2026-06-29 02:32:34 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/