1. Go to this page and download the library: Download khalyomede/prototype 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/ */
khalyomede / prototype example snippets
class Tableau extends Prototype {
protected $items;
public function __construct($items = []) {
$this->items = $items;
}
}
namespace Me;
use Khalyomede\Prototype;
class Tableau extends Prototype {
protected $items;
public function __construct($items = []) {
$this->items = $items;
}
public function all() {
return $this->items;
}
}