You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modifiers/Modifiers.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,27 @@ Modifiers form a chain where each modifier can:
15
15
1.**Handle the value** and return a transformed string
16
16
2.**Pass the value** to the next modifier in the chain
17
17
18
+
### Chaining Multiple Modifiers
19
+
20
+
You can chain multiple modifiers together by separating them with the pipe (`|`) character. Modifiers are applied sequentially from left to right, with each modifier receiving the output of the previous one.
21
+
22
+
```php
23
+
$formatter = new PlaceholderFormatter([
24
+
'phone' => '1234567890',
25
+
'value' => '123456',
26
+
]);
27
+
28
+
// Apply pattern formatting, then mask sensitive data
0 commit comments