PHP code example of bootphp / loader

1. Go to this page and download the library: Download bootphp/loader 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/ */

    

bootphp / loader example snippets


namespace app {

    use \bootphp\loader\Loader;
    use \bootphp\fn;

    LE";

        public function __construct()
        {
            // TODO: Something you want to do before I do something.
            fn::println("__construct");
            fn::println("Title in query is " . $this->title);
            fn::println("Title2 in query is " . $this->title2);
            fn::println("Title3 in query is " . $this->title3);
        }

        public function invoke($options)
        {
            // TODO: What you want to do?.
            // You can access all Query params here as instance properties like : $this->title
            fn::println("invoke");
            fn::println("Title in query is " . $this->title);
            fn::println("Title2 in query is " . $this->title2);
            fn::println("Title3 in query is " . $this->title3);
        }

        public function __destruct()
        {   
            // Now evrything is done.
            // TODO: Something you want to do before i say goodbye.
        }

    }

    (new Index)();
    //OR (new Index())->execute();
}
bash
    http://localhost/index.php?title=lucas&title2=no&title3=yes