2017 © Pedro Peláez
 

library cache

PHP Cache Lib

image

bootphp/cache

PHP Cache Lib

  • Friday, August 11, 2017
  • by lnt
  • Repository
  • 1 Watchers
  • 0 Stars
  • 218 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 3 % Grown

The README.md

loader

Entry point for your core-php application, (*1)

Now Entry point of your application would look something like this, (*2)

index.php
namespace app {

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

    include_once "lib/autoload.php";

    class Index extends Loader
    {
        public $title = "DEFAULT_TITLE";

        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();
}

Try this url with different values or no values, (*3)

    http://localhost/index.php?title=lucas&title2=no&title3=yes

The Versions

11/08 2017

dev-master

9999999-dev

PHP Cache Lib

  Sources   Download

MIT