PHP code example of hieu-le / body-classes

1. Go to this page and download the library: Download hieu-le/body-classes 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/ */

    

hieu-le / body-classes example snippets


    $body = new \HieuLe\BodyClasses\Body();
    

    $body->addClasses('class-1 class-2');
    
    // OR
    
    $body->addClasses(array('class-1', 'class-2'));