PHP code example of dugajean / pouch
1. Go to this page and download the library: Download dugajean/pouch 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/ */
dugajean / pouch example snippets
use Pouch\Pouch;
Pouch::bootstrap(__DIR__);
// ...
pouch()->registerNamespaces('Foo'); // Foo corresponds to src/
namespace Foo;
class Bar
{
public function doSomething(Baz $baz)
{
$baz->doSomethingElse();
}
}
class Baz
{
public function doSomethingElse()
{
echo 'From Baz!';
}
}