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