Skip to content

Releases: rubricate/str

v2.2.0 (LTS Legacy Support)

Choose a tag to compare

@estefanionsantos estefanionsantos released this 10 Jul 19:22

This release completes the modernization of the string encoding layer, bringing strict typing and codebase consistency up to PHP 7.2+ standards without introducing breaking changes.

🔄 Refactored

  • Type Safety: Enforced strict argument and return type hints across AbstractEncoderStr and related encoding utilities.
  • Code Consistency: Renamed internal legacy variables (e.g., $str to $string) to match the codebase naming conventions.
  • Payload Optimization: Cleaned up internal loops and encoding checks (seemsUtf8, utf8UriEncode) for cleaner maintenance.

🚀 Performance & Compatibility

  • Fully compatible with PHP 7.2 up to current versions.
  • Zero BC (Backward Compatibility) breaks detected; internal behavior remains exact.

v1.0.0 (Legacy Support)

Choose a tag to compare

@estefanionsantos estefanionsantos released this 10 Jul 19:00

Added

  • Initial stable release of the Rubricate String component.
  • Introduced AbstractEncoderStr to isolate low-level character encoding logic.

Refactored

  • Modernized legacy code structure for clean PHP 5.4+ compatibility (short array syntax [], strict visibility modifiers).
  • Moved utf8UriEncode to AbstractEncoderStr and changed its visibility to protected for better encapsulation.
  • Standardized all method arguments to consistently use $string.

Changed (API Clean up)

Renamed several methods to improve semantics, consistency, and eliminate redundancy:

  • clean -> strip (explicitly states it strips HTML tags).
  • autoLinkUrl -> linkUrl
  • autoLinkEmail -> linkEmail
  • autoLink -> link
  • encodeHtmlTag -> encodeEntities (focused on HTML entities conversion).
  • stripIndentation -> flattenSpace (accurately describes flattening block text).