PHP code example of kohkimakimoto / static-proxy
1. Go to this page and download the library: Download kohkimakimoto/static-proxy 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/ */
kohkimakimoto / static-proxy example snippets
use Kohkimakimoto\StaticProxy\StaticProxy;
use Kohkimakimoto\StaticProxy\StaticProxyContainer;
$container = new StaticProxyContainer();
$container->bind("hello", new HelloworldFunctions());
StaticProxy::setContainer($container);
StaticProxy::addAlias("Hw", "Test\Kohkimakimoto\StaticProxy\Helloworld");
Hw::helloWorld();