Skip to content

feat: add encodeUrl method#41

Merged
viniciusvts merged 5 commits intomainfrom
feat-add-encode-url-method
Apr 27, 2026
Merged

feat: add encodeUrl method#41
viniciusvts merged 5 commits intomainfrom
feat-add-encode-url-method

Conversation

@viniciusvts
Copy link
Copy Markdown
Member

📝 Description

method properly encodes a string for safe use in URLs by converting special characters to their percent-encoded equivalents

Closes #28

🎯 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

method properly encodes a string for safe use in URLs by converting special characters to their percent-encoded equivalents

Refs: #28
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 21, 2026

Deploy Preview for string-morpher canceled.

Name Link
🔨 Latest commit c8d16d1
🔍 Latest deploy log https://app.netlify.com/projects/string-morpher/deploys/69efeff1562795000826c45f

@viniciusvts viniciusvts merged commit 879e87b into main Apr 27, 2026
11 checks passed
@viniciusvts viniciusvts deleted the feat-add-encode-url-method branch April 27, 2026 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add encodeUrl method for URL encoding

1 participant