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,9 @@ APP_URL=http://localhost
|
||||
# Optional: max requests/minute per IP for public /r/{slug} and subscribe (default: 1000 when APP_ENV is local|testing, else 60).
|
||||
# PUBLIC_REQUESTS_PER_MINUTE=120
|
||||
|
||||
# Default region for parsing national phone numbers (ISO 3166-1 alpha-2). Used by libphonenumber.
|
||||
# PREREGISTER_DEFAULT_PHONE_REGION=NL
|
||||
|
||||
# Wall-clock times from the admin UI (datetime-local) are interpreted in this zone.
|
||||
APP_TIMEZONE=Europe/Amsterdam
|
||||
|
||||
|
||||
Reference in New Issue
Block a user