1. Go to this page and download the library: Download whitestone/xpl 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/ */
whitestone / xpl example snippets
class Foo {
use Whitestone\Xpl\Runkit;
public function print($x)
{
echo "{$x}\n";
}
}
$foo = new Foo;
$foo->with(function($time) {
$this->print($time);
$this->print('OK');
}, time());
abstract class Bar {
use Pathkit;
public function add()
{
$filePath = $this->myFilename();
error_log("Deprecated method Bar->add() called in '{$filePath}'!");
}
}
class FooBar extends Bar
{
}
class View {
use Renderer;
}
<?= $foo;
$view = new View;
echo $view->scopedRender('template.phtml', ['foo' => 'bar']);
html
Deprecated method Bar->add() called in '.*/Foobar.php'
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.