PHP code example of idf / nova-html-card
1. Go to this page and download the library: Download idf/nova-html-card 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/ */
idf / nova-html-card example snippets
use InteractionDesignFoundation\HtmlCard\HtmlCard;
public function cards()
{
return [
(new HtmlCard())->width('1/3')->html('<h1>Hello World!</h1>'),
(new HtmlCard())->width('1/3')->markdown('# Hello World!'),
(new HtmlCard())->width('1/3')->view('cards.hello', ['name' => 'World']),
];
}