PHP Classes

File: novakit

Recommend this page to a friend!
  Classes of Ujah Chigozie peter   Luminova REST API Example   novakit   Download  
File: novakit
Role: Example script
Content type: text/plain
Description: Example script
Class: Luminova REST API Example
Implements an example of a REST API
Author: By
Last change:
Date: 17 days ago
Size: 621 bytes
 

Contents

Class file image Download
#!/usr/bin/env php
<?php
/**
 * Luminova Framework NovaKit Command Line Tool.
 *
 * @package Luminova
 * @author Ujah Chigozie Peter
 * @copyright (c) Nanoblock Technology Ltd
 * @license See LICENSE file
 */
use \Luminova\Command\Console;
use \
Luminova\Boot;

/**
 * Autoload composers
 */
require __DIR__ . '/system/Boot.php';

/**
 * Location of the framework bootstrap file.
 */
Boot::cli();

/**
 * Ensure the current directory is pointing to the front controller's directory
 */
chdir(FRONT_CONTROLLER);

/**
 * Initialize Terminal Console and Run console instance
 */
(new Console())->run($_SERVER['argv'] ?? []);