1. Go to this page and download the library: Download anax/view 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/ */
anax / view example snippets
namespace Anax\View;
/**
* Render content within an article.
*/
// Show incoming variables and view helper functions
//echo showEnvironment(get_defined_vars(), get_defined_functions());
// Prepare classes
$classes[] = "article";
if (isset($class)) {
$classes[] = $class;
}
namespace Anax\View;
// Show incoming variables and view helper functions
//echo showEnvironment(get_defined_vars(), get_defined_functions());