PHP code example of aztech / carnival
1. Go to this page and download the library: Download aztech/carnival 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/ */
aztech / carnival example snippets
// This call is only erade::register();
// Bind an object to a class name
Aztech\Carnival\Masquerade::bind('\Facades\SomeArray', new \SplObjectStorage());
// Use your facade
Facades\SomeArray::attach(new \stdClass());