New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

adjai/backender

Package Overview
Dependencies
Maintainers
1
Versions
143
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adjai/backender

Simple backend

Source
Packagist
Version
0.0.148
Version published
Total downloads
247
Maintainers
1
Created
Source

BACKENDER

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/

FAQs

Package last updated on 01 Aug 2024

Related posts