PHP code example of smpita / makeas
1. Go to this page and download the library: Download smpita/makeas 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/ */
smpita / makeas example snippets
$typed = app()->makeAs(Bound::class);
$typed = app()->makeAs(Bound::class, []);
$typed = app()->makeAs('magic-string', [], Bound::class);
makeAs(string $abstract, array $parameters = [], string $expected = null): mixed