Skip to content

Instantly share code, notes, and snippets.

@estefanionsantos
Created May 24, 2026 23:12
Show Gist options
  • Select an option

  • Save estefanionsantos/3b0f80c3a190e731509e5cf81ff1026f to your computer and use it in GitHub Desktop.

Select an option

Save estefanionsantos/3b0f80c3a190e731509e5cf81ff1026f to your computer and use it in GitHub Desktop.
ReplaceFilter
<?php
use Rubricate\Filter\Word\ReplaceFilter;
// Constructor signature: ReplaceFilter($searchSeparator, $replacementSeparator)
$filter = new ReplaceFilter('/', '-');
echo $filter->getFilter('2026/05/24');
// Output: 2026-05-24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment