PHP code example of osynapsy / osynapsy-html2

1. Go to this page and download the library: Download osynapsy/osynapsy-html2 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/ */

    

osynapsy / osynapsy-html2 example snippets





$div = new \Osynapsy\Html\Tag('div', 'div1', 'card');
$div->addClass('bg-white')->add('Test');

echo $div;