feat: E.164 phone validation and storage with libphonenumber
- Add giggsey/libphonenumber-for-php, PhoneNumberNormalizer, ValidPhoneNumber rule - Store subscribers as E.164; mutator normalizes on save; optional phone required from form block - Migration to normalize legacy subscriber phones; Mailwizz/search/UI/tests updated - Add run-deploy-from-local.sh and PREREGISTER_DEFAULT_PHONE_REGION in .env.example Made-with: Cursor
This commit is contained in:
@@ -7,6 +7,18 @@ $defaultPerMinute = in_array($env, ['local', 'testing'], true) ? 1000 : 60;
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default phone region (ISO 3166-1 alpha-2)
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Used when parsing numbers without a country prefix (e.g. national format).
|
||||
| Override with PREREGISTER_DEFAULT_PHONE_REGION in .env.
|
||||
|
|
||||
*/
|
||||
|
||||
'default_phone_region' => strtoupper((string) env('PREREGISTER_DEFAULT_PHONE_REGION', 'NL')),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Public routes rate limit
|
||||
|
||||
Reference in New Issue
Block a user