Skip to content

Releases: Propaganistas/Laravel-Phone

3.0.5

11 Feb 11:01
Compare
Choose a tag to compare

Laravel 5.6 compatibility

3.0.4

13 Nov 15:04
Compare
Choose a tag to compare
  • #65 - Use provided countries for additional international parsing (global region recognition)

3.0.3

22 Aug 07:05
Compare
Choose a tag to compare

Bug fix:

  • #60 - Throw an exception for an ambigious parameter

3.0.2

25 Jul 21:05
Compare
Choose a tag to compare

Bug fix:

  • #58 - Re-enabled validation support for combining a custom country field, fallback countries and AUTO.

3.0.1

24 Jul 09:39
Compare
Choose a tag to compare

Bug fix:

  • Catch the parent NumberParseException

3.0.0

21 Jul 08:14
Compare
Choose a tag to compare

Overview

  • Rewritten validator class.
  • Exposed an expressive Rule class.
  • Added an extensive PhoneNumber class for more granular formatting and phone number information.
  • Addressed #55 : auto-detection when formatting.

Breaking changes

  • The Service Provider is renamed. Please change to Propaganistas\LaravelPhone\PhoneServiceProvider.
  • The Facade to libphonenumber is removed in favor of the new PhoneNumber utility class. If you really need the Facade, just create it yourself.
  • The validator will now only throw an exception when invalid parameters are encountered. All other erroneous cases such as invalid countries will validate to false.
  • Three additional exceptions may be thrown when formatting a phone number:
    • Propaganistas\LaravelPhone\Exceptions\NumberParseException: when the number could not be parsed by libphonenumber (e.g. invalid country, no country, ...).
    • Propaganistas\LaravelPhone\Exceptions\NumberFormatException: when an invalid phone format is provided.
    • Propaganistas\LaravelPhone\Exceptions\CountryCodeException: when an invalid calling-from country is provided (formatForCountry() and formatForMobileDialingInCountry()).

2.8.5

02 Jun 10:29
Compare
Choose a tag to compare

Auto-discover the Service Provider as of Laravel 5.5

2.8.4

28 May 11:42
Compare
Choose a tag to compare

Bug fix:

  • Restore Lumen compatibility (fixes #52)

2.8.3

26 May 10:58
Compare
Choose a tag to compare

Allow the phone validator to be used in array-like input (dependent validation). Framework-supported as of 5.4.18

Fixes #34

2.8.2

14 Dec 17:14
Compare
Choose a tag to compare

Enhancement:

  • #43 - Support libphonenumber v8