1. Go to this page and download the library: Download intahwebz/weaver 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/ */
intahwebz / weaver example snippets
class TestClass {
function __construct($statement, $createLine){
$this->statement = $statement;
$this->createLine = $createLine;
}
function executeQuery($queryString, $foo2) {
echo "executing query!";
return 5;
}
}
namespace Weaver\Weave;
use Intahwebz\Timer;
class TimerProxy {
private $timer;
function __construct(Timer $timer) {
$this->timer = $timer;
}
function reportTimings() {
$this->timer->dumpTime();
}
}