PHP code example of dnaber / requisite
1. Go to this page and download the library: Download dnaber/requisite 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/ */
dnaber / requisite example snippets
/**
* Load the Requisite library. Alternatively you can use composer's
* autoloader via include vendor/autoload.php
*/
rectory
$autoloader->addRule(
new Requisite\Rule\Psr4(
__DIR__ . '/vendor/Monolog', // base directory
'Monolog' // base namespace
)
);
// configure a ClassMap
$autoloader->addRule(
new Requisite\Rule\ClassMap(
[
'Foo\Bar' => '/vendor/package/src/Foo/Bar.php',
'Foo\Bazz' => '/vendor/package/src/Foo/Bazz.php'
]
)
);