Download the PHP package ysfkaya/filament-phone-input without Composer

On this page you can find all versions of the php package ysfkaya/filament-phone-input. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-phone-input

Filament Phone Input

Filament Phone Input

GitHub Tests Action Status Total Downloads Filament Version

Table of Contents

Introduction

This package provides a phone input component for Laravel Filament. It uses International Telephone Input to provide a dropdown of countries and flags.

This package also includes with Laravel Phone package. You can use all the methods of the Laravel Phone package.

[!NOTE] For Filament 2.x use 1.x branch

Installation

You can install the package via composer:

Usage

Seperate Country Code


Sometimes you may want to save the country code and the phone number in different columns. You can use the countryStatePath method to do that.

Table column:

Infolist entry:

When you use the countryStatePath method, the country code will be saved to the phone_country column and the phone number will be saved to the phone column.

Default Country


The default country value is will be used while parsing the phone number. If you can getting the Number requires a country to be specified. or Number does not match the provided country error, you should set the default country.

[!NOTE] I think the main source of this problem is that there is no area code in the phone number previously recorded in your database. To fix this, libphonenumber expects a default phone number from us. Unfortunately, there is no ability to guess the country by phone number yet.

Validation


You may validate the phone number by using the validateFor method:

[!WARNING] Add an extra translation to your validation.php file.

You can find more information about the validation here

Display Number Format


You may set the display format of the phone number by passing a format string to the displayNumberFormat method. The default format is NATIONAL. That means the phone number will be displayed in the format of the selected country.

Available formats are;

Filament Phone Input

Input Number Format


You may set the input value type by passing a type string to the inputNumberFormat method. The default type is E164. That means the phone number will be saved in the format of the selected country to the database.

Focus Input Type


You may set the focus input type by passing a type string to the focusNumberFormat method. The default value is false.

Filament Phone Input

Disallow Dropdown


You may disable the dropdown by using the disallowDropdown method:

Filament Phone Input

Hide Flags


If you want to hide the flags, you may use the showFlags method:

[!WARNING] Must be used in combination with separateDialCode option, or with disallowDropdown

Show Fullscreen Popup


If you want to show the fullscreen popup on mobile devices, you may use the useFullscreenPopup method:

Auto Placeholder


You may set the auto placeholder type by using the autoPlaceholder method:

Custom Container


You may set the additional classes to add to the parent div by using the customContainer method:

Exclude Countries


You may set the exclude countries by using the excludeCountries method:

Initial Country


You may set the initial country by using the initialCountry method:

Only Countries


You may set the only countries by using the onlyCountries method:

Filament Phone Input

Format On Display

You may set the format on display by using the formatOnDisplay method:

Geo Ip Lookup


In default, the package performs a geoIp lookup to set the initial country while mounting the component. To disable this feature, you may use the disableIpLookUp method:

You may set the geoIp lookup by using the geoIpLookup method:

Placeholder Number Type


You may set the placeholder number type by using the placeholderNumberType method:

Preferred Countries


You may set the preferred countries by using the preferredCountries method:

[!CAUTION] This method will also disable the country search option. countrySearch(false)

Show Selected Dial Code


You may want to show selected country dial code by using the showSelectedDialCode method:

Auto Insert Dial Code


You may want to insert the dial code of selected country by using autoInsertDialCode method:

[!CAUTION] You have to disable the nationalMode option to use this feature. See the intl-tel-input documentation for more information.

Country Search


By default, the country search mode is set to active. You can disable it by using the countrySearch method:

i18n


You can configure the localization of the component by using the i18n method. See the intl-tel-input for more information:

Format as You Type


Automatically format the number as the user types. You can disable it by using the formatAsYouType method:

Using the PhoneInput outside of Filament

A livewire component:

A blade component:

A blade layout:

More


You can find the more documentation for the intel tel input here

Troubleshooting

Propaganistas\LaravelPhone\Exceptions\NumberParseException error

Upgrade From 1.x

If you are upgrading from 1.x, you should publish the assets again.

Namespace

Deprecated

Testing

Run following command to prepare testing environment.

Run following command to run tests.

Changelog

Please see CHANGELOG for more information what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of filament-phone-input with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
filament/filament Version ^3.0
propaganistas/laravel-phone Version ^5.0
spatie/laravel-package-tools Version ^1.16
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ysfkaya/filament-phone-input contains the following files

Loading the files please wait ....