PHP code example of manychois / views
1. Go to this page and download the library: Download manychois/views 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/ */
manychois / views example snippets
$r = new \Manychois\Views\ResourceLibrary();
$r->push('a', '<link rel="stylesheet" type="text/css" href="a.css" />', ['b']);
$r->push('b', '<link rel="stylesheet" type="text/css" href="b.css" />');
$result = $r->pull('a');
[
'b' => '<link rel="stylesheet" type="text/css" href="b.css" />',
'a' => '<link rel="stylesheet" type="text/css" href="a.css" />'
]