PHP code example of bulwark / architect
1. Go to this page and download the library: Download bulwark/architect 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/ */
bulwark / architect example snippets
$books = Book::with('Author')->get();
$architect = new \Bulwark\Architect\Architect;
$parsed = $architect->parseData($books, [
'author' => 'sideload' // can also be embed or ids (embed is default)
], 'books');