This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Rubricate\Filter\Word\ReplaceFilter; | |
| // Constructor signature: ReplaceFilter($searchSeparator, $replacementSeparator) | |
| $filter = new ReplaceFilter('/', '-'); | |
| echo $filter->getFilter('2026/05/24'); | |
| // Output: 2026-05-24 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Rubricate\Filter\Word\FromCamelCaseFilter; | |
| $filter = new FromCamelCaseFilter('-'); // Define the output separator | |
| echo $filter->getFilter('RubricateFilterComponent'); | |
| // Output: rubricate-filter-component |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Rubricate\Filter\Word\ToCamelCaseFilter; | |
| $filter = new ToCamelCaseFilter('_'); // Define the input separator | |
| echo $filter->getFilter('rubricate_filter_component'); | |
| // Output: RubricateFilterComponent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Rubricate\Filter\Preserve\AlnumDashFilter; | |
| $filter = new AlnumDashFilter(); | |
| echo $filter->getFilter('huguinho-zézinho_luizinho 123'); | |
| // Output: huguinho-zzinho_luizinho123 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Rubricate\Filter\Preserve\NumFilter; | |
| $filter = new NumFilter(); | |
| echo $filter->getFilter('Order ID: #984-A2'); | |
| // Output: 9842 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Rubricate\Filter\Preserve\AlphaFilter; | |
| $filter = new AlphaFilter(); | |
| echo $filter->getFilter('PHP 8.2 Engine'); | |
| // Output: PHPEngine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Rubricate\Filter\Preserve\AlnumFilter; | |
| $filter = new AlnumFilter(); | |
| echo $filter->getFilter('Carroça de nº 123!'); | |
| // Output: Carroaden123 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Rubricate\Agent\UserAgent; | |
| // 1. Instantiate the class passing the configurations | |
| $ua = new UserAgent($config); | |
| // 2. Checking the device type | |
| if ($ua->isMobile()) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $config = [ | |
| 'platforms' => [ | |
| 'windows nt 10.0' => 'Windows 10', | |
| 'android' => 'Android', | |
| 'iphone' => 'iPhone', | |
| 'linux' => 'Linux', | |
| 'ubuntu' => 'Ubuntu Linux', | |
| 'fedora' => 'Fedora Linux', | |
| 'x11' => 'Linux (Generic)' | |
| ], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="pp_3 bg_prm">x.bg_prm - primary </div> | |
| <div class="pp_3 bg_scn">.bg_scn - secundary </div> | |
| <div class="pp_3 bg_lgt">.bg_lgt - light </div> | |
| <div class="pp_3 bg_ntl">.bg_ntl - neutral </div> | |
| <div class="pp_3 bg_raw">.bg_raw - raw (transparente) </div> |
NewerOlder