Skip to content

fix(deps): update dependency giggsey/libphonenumber-for-php to v9 (next)#1928

Open
renovate[bot] wants to merge 1 commit intonextfrom
renovate/next-giggsey-libphonenumber-for-php-9.x
Open

fix(deps): update dependency giggsey/libphonenumber-for-php to v9 (next)#1928
renovate[bot] wants to merge 1 commit intonextfrom
renovate/next-giggsey-libphonenumber-for-php-9.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Feb 12, 2026

This PR contains the following updates:

Package Change Age Confidence
giggsey/libphonenumber-for-php ^8.13.55^9.0.0 age confidence

Release Notes

giggsey/libphonenumber-for-php (giggsey/libphonenumber-for-php)

v9.0.23

Compare Source

Google v9.0.23 changes: Jan 29, 2025
Metadata changes:
  • Updated alternate formatting data for country calling code(s): 595
  • Updated phone metadata for region code(s):
    AS, BE, CD, EH, GY, IR, JM, MA, MU, PY, SA, US
  • Updated short number metadata for region code(s): PY
  • Updated carrier data for country calling code(s):
    98 (en, fa), 243 (en), 357 (en), 966 (en), 1658 (en)

v9.0.22

Compare Source

Google v9.0.22 changes: Jan 13, 2025
Metadata changes:
  • Updated phone metadata for region code(s):
    AE, AG, AI, AS, BB, BM, BS, CA, DM, DO, GD, GU, HK, JM, KN, KR, KY, LC, MA,
    MP, MS, PR, SG, SX, TC, TT, UG, US, VC, VG, VI
  • Updated geocoding data for country calling code(s): 1305 (en)
  • Updated carrier data for country calling code(s):
    33 (en), 34 (en), 39 (en), 41 (en), 65 (en), 81 (en), 255 (en), 256 (en),
    852 (en, zh, zh_Hant), 971 (en)
PHP Changes

v9.0.21

Compare Source

Google v9.0.21 changes: Dec 17, 2025
Metadata changes:
  • Updated alternate formatting data for country calling code(s): 91
  • Updated phone metadata for region code(s):
    CL, EE, ET, GE, GY, HK, IN, KR, MG, SG, SV, US
  • New geocoding data for country calling code(s): 1353 (en)
  • Updated geocoding data for country calling code(s): 251 (en)
  • Updated carrier data for country calling code(s):
    34 (en), 36 (en), 43 (en), 48 (en), 56 (en), 65 (en), 261 (en), 501 (en),
    503 (en), 852 (en, zh)
  • Updated / refreshed time zone meta data.

v9.0.20

Compare Source

Google v9.0.20 changes: Dec 04, 2025
Metadata changes:
  • Updated phone metadata for region code(s): GY, IL, MU, TD, TZ, UG, UZ
  • New geocoding data for country calling code(s): 229 (en)
  • Updated carrier data for country calling code(s):
    34 (en), 230 (en), 255 (en), 256 (en), 998 (en)

v9.0.19

Compare Source

Google v9.0.19 changes: Nov 19, 2025
Metadata changes:
  • Updated phone metadata for region code(s):
    CF, EE, EH, GE, IN, LB, MA, OM, SG, SN, SV, UG
  • Updated geocoding data for country calling code(s):
    61 (en), 91 (en), 212 (en)
  • Updated carrier data for country calling code(s):
    34 (en), 45 (en), 65 (en), 91 (en), 236 (en), 256 (en), 503 (en), 961 (en),
    995 (en)

v9.0.18

Compare Source

Google v9.0.18 changes: Nov 06, 2025
Metadata changes:
  • Updated phone metadata for region code(s):
    AU, BJ, CC, CX, ET, IL, IR, MC, PY, QA, SG, SV, TJ, UG, ZA
  • Updated short number metadata for region code(s): PY
  • Updated geocoding data for country calling code(s): 61 (en)
  • Updated carrier data for country calling code(s):
    61 (en), 65 (en), 98 (en, fa), 229 (en), 256 (en), 372 (en), 377 (en),
    503 (en), 972 (en), 992 (en)
  • Updated / refreshed time zone meta data.

v9.0.17

Compare Source

Google v9.0.17 changes: Oct 23, 2025
Metadata changes:
  • Updated phone metadata for region code(s): AU, CC, CX, GB, LB, MG, SN
  • Updated short number metadata for region code(s): RO
  • Updated carrier data for country calling code(s):
    57 (en), 61 (en), 221 (en), 255 (en), 261 (en), 852 (zh), 961 (en)
  • Updated / refreshed time zone meta data.

v9.0.16

Compare Source

Google v9.0.16 changes: Oct 09, 2025
Metadata changes:
  • Updated phone metadata for region code(s): CZ, ES, GE, HK, JO, LI, US
  • Updated short number metadata for region code(s): ES
  • New geocoding data for country calling code(s): 1324 (en)
  • Updated geocoding data for country calling code(s): 1437 (en)
  • Updated carrier data for country calling code(s):
    34 (en), 65 (en), 233 (en), 423 (en), 673 (en), 852 (en, zh), 962 (en),
    995 (en)
  • Updated / refreshed time zone meta data.

v9.0.15

Compare Source

Google v9.0.15 changes: Sep 24, 2025
Metadata changes:
  • Updated phone metadata for region code(s): KE, UG, US
  • Updated short number metadata for region code(s): DE, ES
  • Updated carrier data for country calling code(s): 254 (en), 256 (en)

v9.0.14

Compare Source

Google v9.0.14 changes: Sep 11, 2025
Metadata changes:
  • Updated phone metadata for region code(s): CZ, DE, IT, LI, LV, ME, SG, US
  • Updated short number metadata for region code(s): DE
  • New geocoding data for country calling code(s): 1686 (en)
  • Updated geocoding data for country calling code(s): 39 (en, it), 61 (en)
  • Updated carrier data for country calling code(s):
    46 (en), 65 (en), 420 (en), 998 (en)
  • Updated / refreshed time zone meta data.

v9.0.13

Compare Source

Google v9.0.13 changes: Aug 28, 2025
Metadata changes:
  • Updated phone metadata for region code(s):
    BT, DE, GY, IL, OM, PA, SG, SR, UY
  • Updated short number metadata for region code(s): UY
  • Updated geocoding data for country calling code(s): 975 (en)
  • Updated carrier data for country calling code(s):
    30 (en), 41 (en), 46 (en), 49 (en), 65 (en), 86 (en, zh), 372 (en), 597 (en),
    968 (en), 975 (en)

v9.0.12

Compare Source

Google v9.0.12 changes: Aug 13, 2025
Metadata changes:
  • Updated phone metadata for region code(s): GB, GG, GM, GY, IM, JE
  • Updated geocoding data for country calling code(s): 61 (en), 81 (en, ja)
  • Updated carrier data for country calling code(s):
    220 (en), 370 (en), 592 (en)

v9.0.11

Compare Source

Google v9.0.11 changes: Jul 30, 2025
Metadata changes:
  • Updated phone metadata for region code(s):
    DO, EH, IL, JP, MA, MN, OM, PG, SG, US
  • Updated short number metadata for region code(s): DE, JP
  • Updated geocoding data for country calling code(s): 34 (en, es)
  • Updated carrier data for country calling code(s):
    27 (en), 32 (en), 65 (en), 81 (en), 675 (en), 968 (en), 976 (en), 996 (en)

v9.0.10

Compare Source

Google v9.0.10 changes: Jul 17, 2025
Metadata changes:
  • Updated phone metadata for region code(s):
    AU, CC, CL, CX, ET, JP, NP, SY, SZ
  • Updated short number metadata for region code(s): JP
  • Updated carrier data for country calling code(s):
    43 (en), 48 (en), 56 (en), 61 (en), 268 (en), 963 (en), 977 (en)

v9.0.9

Compare Source

Google v9.0.9 changes: Jul 02, 2025
Metadata changes:
  • Updated phone metadata for region code(s): CZ, GM, HK, KW, TD, US, WS
  • New geocoding data for country calling code(s): 1748 (en), 1975 (en)
  • Updated carrier data for country calling code(s):
    220 (en), 235 (en), 237 (en), 685 (en), 852 (en, zh), 995 (en)
  • Updated / refreshed time zone meta data.

v9.0.8

Compare Source

Google v9.0.8 changes: Jun 19, 2025
Metadata changes:
  • Updated phone metadata for region code(s):
    BF, DE, EH, GY, HK, HT, KZ, MA, RU, UG
  • Updated short number metadata for region code(s): AT
  • Updated geocoding data for country calling code(s): 7 (en, ru)
  • Updated carrier data for country calling code(s):
    34 (en), 44 (en), 46 (en), 47 (en), 226 (en), 592 (en), 852 (en, zh),
    966 (en), 996 (en)
  • Updated / refreshed time zone meta data.
PHP Bug Fix

v9.0.7

Compare Source

Google v9.0.7 changes: Jun 04, 2025
Metadata changes:
  • Updated phone metadata for region code(s):
    AU, BW, CC, CX, DE, LB, MN, PA, PT, SG, UG
  • Updated short number metadata for region code(s): DE
  • Updated geocoding data for country calling code(s): 61 (en)
  • Updated carrier data for country calling code(s):
    46 (en), 47 (en), 48 (en), 65 (en), 81 (en), 256 (en)
  • Updated / refreshed time zone meta data.

v9.0.6

Compare Source

Google v9.0.6 changes: May 23, 2025
Metadata changes:
  • Updated phone metadata for region code(s):
    BI, CA, CO, HK, IR, LI, LR, MY, SA, US
  • New geocoding data for country calling code(s): 1257 (en)
  • Updated geocoding data for country calling code(s): 57 (en)
  • Updated carrier data for country calling code(s):
    33 (en), 57 (en), 61 (en), 81 (en), 98 (en, fa), 229 (en), 370 (en),
    423 (en), 852 (en, zh)
  • Updated / refreshed time zone meta data.

v9.0.5

Compare Source

Google v9.0.5 changes: May 07, 2025
Metadata changes:
  • Updated phone metadata for region code(s): EH, IL, LA, MA, ML, QA, SG, SR
  • Updated carrier data for country calling code(s):
    49 (en), 65 (en), 597 (en), 856 (en)

v9.0.4

Compare Source

Google v9.0.4 changes: Apr 23, 2025
Metadata changes:
  • Updated phone metadata for region code(s): BI, BR, LB, MU, NG, SG, SY
  • Updated geocoding data for country calling code(s):
    55 (en), 230 (en, es, fr), 234 (en)
  • Updated carrier data for country calling code(s):
    33 (en), 65 (en), 230 (en), 961 (en), 963 (en)

v9.0.3

Compare Source

Google v9.0.3 changes: Apr 09, 2025
Metadata changes:
  • Updated alternate formatting data for country calling code(s): 43
  • Updated phone metadata for region code(s): AT, GD, HK, HR, MX, RE
  • Updated short number metadata for region code(s): HR
  • Updated geocoding data for country calling code(s): 52 (en)
  • Updated carrier data for country calling code(s):
    43 (en), 229 (en), 262 (en), 852 (en, zh)

v9.0.2

Compare Source

PHP Changes
  • Make PhoneNumberUtil::UNKNOWN_REGION visible again (#​691 - thanks @​gsteel)
  • Fix 32bit PHP issue in truncateLongNumber (#​689)
Google v9.0.2 changes: Mar 27, 2025
Metadata changes:
  • Updated phone metadata for region code(s): NR, US, UZ, ZA
  • New geocoding data for country calling code(s): 1821 (en)
  • Updated geocoding data for country calling code(s): 27 (en)
  • Updated carrier data for country calling code(s):
    27 (en), 389 (en), 674 (en)
  • Updated / refreshed time zone meta data.

v9.0.1

Compare Source

PHP Changes
Google v9.0.1 changes: Mar 13, 2025
Metadata changes:
  • Updated phone metadata for region code(s): AR, MM, SG, US, ZM
  • Updated carrier data for country calling code(s):
    36 (en), 65 (en), 260 (en), 855 (en)

v9.0.0

Compare Source

Google has bumped libphonenumber to v9 for Java compatibility reasons. We've taken this opportunity to make some improvements to this library.

Most projects can upgrade safely without requiring any code changes.

PHP Changes
  • Minimum PHP version: Now 8.1+.
  • Function & parameter types: All functions and parameters now have explicit type definitions.
  • Backed Enums replace const classes:
    • Example: PhoneNumberType is now an enum instead of a class with constants.
    • If you previously referenced the constants directly, no changes are required.
    • If you stored constant values (integers), you'll need to use from() to load the corresponding enum.
  • Metadata storage improvement:
    • Metadata is now stored directly in PHP classes instead of arrays.
    • This improves performance when loading metadata but does not affect usage.
Google v9.0.0 changes: Feb 27, 2025
Metadata changes:
  • Updated alternate formatting data for country calling code(s): 385
  • Updated phone metadata for region code(s):
    AR, BL, GF, GP, GY, HK, JP, MF, RE, SG, SL, SN, TJ, UG, VE, ZA
  • Updated geocoding data for country calling code(s): 27 (en)
  • Updated carrier data for country calling code(s):
    58 (en), 65 (en), 221 (en), 256 (en), 592 (en), 852 (en, zh), 992 (en)
  • Updated / refreshed time zone meta data.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@ThomasAFink
Copy link
Member

@coderabbitai what do we use this library for currently?

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 21, 2026

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

@ThomasAFink Let me search for how this library is currently being used in your codebase.


🏁 Script executed:

#!/bin/bash

# Check composer.json to confirm it's a dependency
echo "=== Checking composer.json ==="
fd -t f "^composer\.json$" --exec cat {}

echo -e "\n=== Searching for libphonenumber namespace imports ==="
rg -n --type php "use.*libphonenumber" -C 2

echo -e "\n=== Searching for PhoneNumberUtil usage ==="
rg -n --type php "PhoneNumberUtil" -C 3

echo -e "\n=== Searching for PhoneNumber class usage ==="
rg -n --type php "PhoneNumber[^U]" -C 2

echo -e "\n=== Searching for phone number validation/parsing functions ==="
rg -n --type php "(parse|format|isValid).*[Pp]hone" -C 2

Length of output: 28937


@ThomasAFink Based on my search of the codebase, the giggsey/libphonenumber-for-php library is currently used in two modules:

📦 Modules using the library:

  1. zmsentities - Entity definitions module
  2. zmsmessaging - Messaging & notifications module

🎯 Primary use cases:

The library is used for phone number validation, parsing, and normalization in three key locations:

  1. zmsentities/src/Zmsentities/Validator/ProcessValidator.php (Line 140)

    • Validates phone numbers when processing appointments
    • Normalizes numbers to international format
  2. zmsentities/src/Zmsentities/Notification.php (Line 110)

    • Parses telephone numbers for sending notifications (SMS, etc.)
    • Ensures consistent format for messaging
  3. zmsentities/src/Zmsentities/Helper/ProcessFormValidation.php (Line 212)

    • Validates phone numbers in appointment booking forms
    • Standardizes user input

📱 How it's used:

All implementations follow the same pattern:

$phoneNumberUtil = \libphonenumber\PhoneNumberUtil::getInstance();
$phoneNumberObject = $phoneNumberUtil->parse($number, 'DE'); // Germany as default region
$normalized = '+' . $phoneNumberObject->getCountryCode() . $phoneNumberObject->getNationalNumber();

The library ensures that phone numbers entered by citizens booking appointments are valid and properly formatted for your appointment booking system, with Germany (DE) as the default region.

@it-at-m it-at-m deleted a comment from coderabbitai bot Feb 21, 2026
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.

1 participant