PHP code example of muetze42 / nova-charcounted-fields
1. Go to this page and download the library: Download muetze42/nova-charcounted-fields 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/ */
muetze42 / nova-charcounted-fields example snippets
TextCounted::make('Meta title')
->maxChars(60)
->warningAt(50)
->withMeta(['extraAttributes' => ['maxlength' => '65']]),
TextareaCounted::make('Meta description')
->maxChars(160)
->warningAt(150)
->rows(3),