1. Go to this page and download the library: Download kagagnon/bem-php 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/ */
kagagnon / bem-php example snippets
/**
* Separator between block and element
*/
KAGagnon\BemPhp\Helpers\BemHelper::$element_separator = '__';
/**
* Separator between modifer and block/element
*/
KAGagnon\BemPhp\Helpers\BemHelper::$modifier_separator = '--';
/**
* Should @bem create a tag element
*/
KAGagnon\BemPhp\Helpers\BemHelper::$create_tag = false;
/**
* If create_tag is true, what's the default tag name
*/
KAGagnon\BemPhp\Helpers\BemHelper::$default_tag = 'div';
/**
* Prefix of BEM classes.
*/
KAGagnon\BemPhp\Helpers\BemHelper::$block_prefix = '';