https://github.com/jojostx/filament-tel-input
A FilamentPHP form plugin for working with phone numbers
https://github.com/jojostx/filament-tel-input
Last synced: 6 months ago
JSON representation
A FilamentPHP form plugin for working with phone numbers
- Host: GitHub
- URL: https://github.com/jojostx/filament-tel-input
- Owner: jojostx
- License: mit
- Created: 2022-06-29T16:51:19.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-09T02:37:09.000Z (over 1 year ago)
- Last Synced: 2024-08-03T03:02:51.716Z (9 months ago)
- Language: PHP
- Size: 216 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-filament - jojostx/filament-tel-input - A FilamentPHP form plugin for working with phone numbers. (Fields)
README
# A FilamentPHP form plugin for working with phone numbers
[](https://packagist.org/packages/jojostx/filament-tel-input)
[](https://github.com/jojostx/filament-tel-input/actions?query=workflow%3Arun-tests+branch%3Amain)
[](https://github.com/jojostx/filament-tel-input/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
[](https://packagist.org/packages/jojostx/filament-tel-input)This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
## Installation
You can install the package via composer:
```bash
composer require jojostx/filament-tel-input
```Publish the flags using
```bash
php artisan vendor:publish --tag="filament-tel-input-flags"
```
This command will publish the filament-tel-input flags images## Usage
```php
[
\Jojostx\FilamentTelInput\Forms\FilamentTelInput::make('phone_number');
]
```## Options
```php
[
\InvadersXX\FilamentJsoneditor\Forms\JSONEditor::make('editor')
->height(500) // Set height to 500px, default is 300
->modes(['code', 'form', 'text', 'tree', 'view', 'preview']); // default is ['code', 'form', 'text', 'tree', 'view', 'preview']
]
```## Testing
```bash
composer test
```## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Jojostx](https://github.com/jojostx)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
* :selectedCountryPlaceholder ["0803 408 1360"]
* :selectedCountryData.name ["Nigeria"]
* :selectedCountryData.iso2 ["NG"]
* :selectedCountryData.dialcode ["234"]