Skip to content

feat: masking pattern#36

Merged
viniciusvts merged 7 commits intomainfrom
23-masking-pattern
Feb 8, 2026
Merged

feat: masking pattern#36
viniciusvts merged 7 commits intomainfrom
23-masking-pattern

Conversation

@viniciusvts
Copy link
Copy Markdown
Member

📝 Description

Implement a mask method that applies a custom mask pattern to a string, allowing flexible formatting of IDs, document numbers, credit cards, phone numbers, and other structured data. The method should accept a string and a custom pattern.

Closes #23

🎯 Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 🔧 Enhancement (improvement of existing feature)
  • 📝 Chore (documentation, refactoring, etc)

✅ Implementation Checklist

Code

  • Transformer created in src/Transformers/ implementing StringTransformerInterface
  • PHPDoc @method added in src/StringMorpher.php
  • PHPDoc @method added in src/Instances/StringMorpherInstance.php

Tests

  • Tests created in tests/Transformers/
  • Tests cover main use cases
  • Tests cover edge cases (null, empty string, etc)
  • All tests pass (vendor/bin/phpunit)

Quality

  • Code passes linter (vendor/bin/phpcs)
  • Code follows project standards

Documentation

  • Method documented in docs/docs/methods/
  • Usage examples included (static and fluent)
  • Parameters and return values documented

@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 8, 2026

Deploy Preview for string-morpher canceled.

Name Link
🔨 Latest commit e8e0027
🔍 Latest deploy log https://app.netlify.com/projects/string-morpher/deploys/6988c2b0070a0a00080c5801

@viniciusvts viniciusvts merged commit ec1ac55 into main Feb 8, 2026
11 checks passed
@viniciusvts viniciusvts deleted the 23-masking-pattern branch February 8, 2026 17:44
@viniciusvts viniciusvts added the enhancement New feature or request label Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add mask method for custom masking patterns

1 participant