PHP code example of devanoxltd / tailwind-class-merge-php
1. Go to this page and download the library: Download devanoxltd/tailwind-class-merge-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/ */
devanoxltd / tailwind-class-merge-php example snippets
use TailwindClassMerge\TailwindClassMerge;
$tw = TailwindClassMerge::instance();
$tw->merge('text-red-500', 'text-blue-500'); // 'text-blue-500'