Skip to content

v1.3.0

Latest

Choose a tag to compare

@iqbalhasandev iqbalhasandev released this 09 Sep 10:44
· 1 commit to main since this release
7cebeaf

What's Added

  • Message Validation System: Comprehensive message validation with configurable rules
    • Laravel-style validation configuration (required, min, max)
    • Support for nullable messages via TEXTIFY_MESSAGE_REQUIRED=false
    • Configurable minimum and maximum message length
    • Proper validation error messages

What's Enhanced

  • Error Handling: Improved error mapping and messages for all Bangladeshi SMS providers
    • ReveSmsProvider: Enhanced error code mapping including error 114 handling
    • AlphaSmsProvider: Better error message descriptions
    • EsmsProvider: Improved error handling and status mapping
    • DhorolaSmsProvider: Enhanced error code explanations
    • MimSmsProvider: Better API response parsing
    • BulkSmsBdProvider: Comprehensive error code mapping

What's Fixed

  • ReveSMS Error 114: "Content not provided" error now prevented by pre-send validation
  • Empty Message Handling: Consistent behavior across all providers
  • Whitespace Messages: Properly validates and rejects whitespace-only messages

What's Technical

  • Added validateMessageContent() method to BaseProvider
  • Enhanced BaseProvider with proper phone number validation methods
  • Comprehensive test suite with 6 test cases
  • PHPStan validation passed
  • Backward compatible configuration

Full Changelog: v1.2.0...v1.3.0