PHP code example of nabeelalihashmi / lightframework

1. Go to this page and download the library: Download nabeelalihashmi/lightframework library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nabeelalihashmi / lightframework example snippets


$demo = new Demo(10, 20);
$light->pluginModule('demo', $demo, function($demo) {
  $demo->showMessage();
});


$light->init();

public function __construct($config_dir = 'config', $autoload_dir = 'autoload', $global_symbol = '__')

public function defer(int $id, callable $callback)

public function runDeferred($ids = [], $remove_upon_calling = true)

public function plugModule($identifier, $object, $callback = null)

public function unplugModule($identifier, $callback = null)

public static function get($array, $key, $default = null) 

public static function set(&$array, $key, $value) 

public static function setConfig($key, $value)

public static function setConfigRaw($key, $val)