Phone field
CommunityProvides a Phone Input field for the Filament V2-V3 Forms, works in Admin-Panel and Forntend-Forms.
Author:
Abanoub Nassem
Package health
BetaAutomated checks of this plugin's Composer package
15 checks
- Failed: GitHub Actions pinned to SHA — View details on Plumb
- Skipped: GitLab CI includes pinned to SHA
- Passed: Open security advisories
- Failed: Dependabot PR responsiveness — Stale Dependabot PRs: oldest general PR is 531 days old. View details on Plumb
- Skipped: Renovate MR responsiveness
- Passed: Dependabot or Renovate configured
-
Failed:
Dependency update cooldown configured
—
No cooldown configured in
.github/dependabot.yml. View details on Plumb - Failed: Provides a security policy — View details on Plumb
- Passed: Abandoned or archived — No consulted source marks the package abandoned (packagist, github).
- Failed: Commit and release recency — Inactive: last commit 533 days ago; last release 533 days ago. View details on Plumb
-
Passed:
composer.lock not committed by library
—
composer.lockis absent from the released dist archive. - Passed: Dist archive is lean
-
Failed:
Current Laravel version supported
—
The newest Laravel line the package co-installs with is
11.0, which is end-of-life. View details on Plumb -
Passed:
Current PHP version supported
—
Constraint
^8.0|^8.1|^8.2|^8.3supports current PHP8.5. - Skipped: Current Symfony version supported
filament/
namespace. Review the source and install at your own risk. Found
malware or an unresolved security issue the author won't
address?
Report it
.
Documentation
A wrapper around intl-tel-input plugin for entering and validating international telephone numbers. It adds a flag dropdown to filament-forms, detects the user's country, displays a relevant placeholder and provides formatting/validation methods.
#Installation
You can install the package via composer:
composer require abanoubnassem/filament-phone-field
You can publish the config file with:
php artisan vendor:publish --tag="filament-phone-field-config"
This is the Content of the published config file. Check it for more understanding of how the plugin works.
All the configurations , can be overridden by chaining the PhoneInput field.
#Usage
use AbanoubNassem\FilamentPhoneField\Forms\Components\PhoneInput;
// admin panel
public static function form(Form $form): Form
{
return $form->schema([
...
PhoneInput::make('phone')
// make sure to set Initial Country to null, in the admin panel
// especially if you have multiple records of phone numbers from
// multiple different countries.
->initialCountry(null)
->tel()
]);
}
//frontend-forms
protected function getFormSchema(): array
{
return [
....
PhoneInput::make('phone')
->tel()
];
}
#Changelog
Please see CHANGELOG for more information on what has changed recently.
#Security Vulnerabilities
If you discover any security related issues, please create an issue.
#Credits
#License
The MIT License (MIT). Please see License File for more information.
The author
From the same author
Featured Plugins
A selection of plugins curated by the Filament team
Blueprint
Filament Blueprint is a premium Laravel Boost extension that helps AI agents produce accurate, detailed implementation plans and security reports for Filament apps.
Filament
Spotlight Pro
Browse your Filament Panel with ease. Filament Spotlight Pro adds a Spotlight/Raycast like Command Palette to your Filament Panel.
Dennis Koch
Advanced Tables (formerly Filter Sets)
Supercharge your tables with powerful features like user-customizable views, quick filters, multi-column sorting, advanced table searching, convenient view management, and more. Compatible with Resource Panel Tables, Relation Managers, Table Widgets, and Table Builder!
Kenneth Sese