Adds phone number functionality to Laravel based on the PHP port of Google's libphonenumber API by giggsey.

Overview

Laravel Phone

Tests Latest Stable Version Total Downloads License

Adds phone number functionality to Laravel based on the PHP port of Google's libphonenumber API by giggsey.

Table of Contents

Demo

Check out the behavior of this package in the demo.

Installation

Run the following command to install the latest applicable version of the package:

composer require propaganistas/laravel-phone

The Service Provider gets discovered automatically by Laravel.

In your languages directory, add an extra translation in every validation.php language file:

'phone' => 'The :attribute field contains an invalid number.',

Validation

To validate a phone number, use the phone keyword in your validation rules array or use the Phone rule class to define the rule in an expressive way. The phone validator is able to operate in three ways.

  • You either specify ISO 3166-1 alpha-2 compliant country codes yourself as parameters for the validator, e.g.:

    'phonefield'       => 'phone:US,BE',
    // 'phonefield'    => Rule::phone()->country(['US', 'BE'])

    The validator will check if the number is valid in at least one of provided countries, so feel free to add as many country codes as you like.

  • You provide a dedicated country input field (keyed by ISO 3166-1 compliant country codes) to allow end users to supply a country on their own. Make sure the country field has the same name as the phone field but with _country appended for automatic discovery, or provide your custom country field name as a parameter to the validator:

    'phonefield'            => 'phone',
    // 'phonefield'         => Rule::phone()
    'phonefield_country'    => 'required_with:phonefield',
    'phonefield'            => 'phone:custom_country_field',
    // 'phonefield'         => Rule::phone()->countryField('custom_country_field')
    'custom_country_field'  => 'required_with:phonefield',
  • You instruct the validator to detect which country the number belongs to using the AUTO keyword (and optionally any fallback countries):

    'phonefield'       => 'phone:AUTO,US',
    // 'phonefield'    => Rule::phone()->detect()->country('US')

    The validator will try to extract the country from the number itself and then check if the number is valid for that country. If the country could not be guessed it will be validated using the fallback countries if provided. Note that country guessing will only work when phone numbers are entered in international format (prefixed with a + sign, e.g. +32 ....). Leading double zeros will NOT be parsed correctly as this isn't an established consistency.

To specify constraints on the number type, just append the allowed types to the end of the parameters, e.g.:

'phonefield'       => 'phone:US,BE,mobile',
// 'phonefield'    => Rule::phone()->country(['US', 'BE'])->type('mobile')
// 'phonefield'    => Rule::phone()->country('US', 'BE')->mobile()

The most common types are mobile and fixed_line, but feel free to use any of the types defined here.

You can also enable more lenient validation (for example, fixed lines without area codes) by using the LENIENT parameter. This feature inherently doesn't play well with country autodetection and number type validation, so use such combo at own risk.

'phonefield'       => 'phone:LENIENT,US',
// 'phonefield'    => Rule::phone()->lenient()->country('US')

Attribute casting

Two cast classes are provided for automatic casting of Eloquent model attributes:

use Illuminate\Database\Eloquent\Model;
use Propaganistas\LaravelPhone\Casts\RawPhoneNumberCast;
use Propaganistas\LaravelPhone\Casts\E164PhoneNumberCast;

class User extends Model
{
    public $casts = [
        'phone' => RawPhoneNumberCast::class.':BE',
        'another_phone' => E164PhoneNumberCast::class.':BE',
    ];
}

Both classes automatically cast the database value to a PhoneNumber object for further use in your application.

$user->phone // PhoneNumber object or null

When setting a value, they both accept a string value or a PhoneNumber object. The RawPhoneNumberCast mutates the database value to the raw input number, while the E164PhoneNumberCast writes a formatted E.164 phone number to the database.

In case of RawPhoneNumberCast, the cast needs to be hinted about the phone country in order to properly parse the raw number into a phone object. In case of E164PhoneNumberCast and the value to be set is not already in some international format, the cast needs to be hinted about the phone country in order to properly mutate the value.

Both classes accept cast parameters in the same way:

  1. When a similar named attribute exists, but suffixed with _country (e.g. phone_country), the cast will detect and use it automatically.
  2. Provide another attribute's name as a cast parameter
  3. Provide one or several country codes as cast parameters
public $casts = [
    'phone' => RawPhoneNumberCast::class.':country_field',
    'another_phone' => E164PhoneNumberCast::class.':BE',
];

In order to not encounter any unexpected issues when using these casts, please always validate any input using the validation rules previously described.

⚠️ Attribute assignment and E164PhoneNumberCast

Due to the nature of E164PhoneNumberCast a valid country attribute is expected if the number is not passed in international format. Since casts are applied in the order of the given values, be sure to set the country attribute before setting the phone number attribute. Otherwise E164PhoneNumberCast will encounter an empty country value and throw an unexpected exception.

// Wrong
$model->fill([
    'phone' => '012 34 56 78',
    'phone_country' => 'BE',
]);

// Correct
$model->fill([
    'phone_country' => 'BE',
    'phone' => '012 34 56 78',
]);

// Wrong
$model->phone = '012 34 56 78';
$model->phone_country = 'BE';

// Correct
$model->phone_country = 'BE';
$model->phone = '012 34 56 78';

Utility PhoneNumber class

A phone number can be wrapped in the Propaganistas\LaravelPhone\PhoneNumber class to enhance it with useful utility methods. It's safe to directly reference these objects in views or when saving to the database as they will degrade gracefully to the E.164 format.

use Propaganistas\LaravelPhone\PhoneNumber;

(string) PhoneNumber::make('+3212/34.56.78');              // +3212345678
(string) PhoneNumber::make('012 34 56 78', 'BE');          // +3212345678
(string) PhoneNumber::make('012345678')->ofCountry('BE');  // +3212345678

Formatting

A PhoneNumber can be formatted in various ways:

PhoneNumber::make('012 34 56 78', 'BE')->format($format);       // See libphonenumber\PhoneNumberFormat
PhoneNumber::make('012 34 56 78', 'BE')->formatE164();          // +3212345678
PhoneNumber::make('012 34 56 78', 'BE')->formatInternational(); // +32 12 34 56 78
PhoneNumber::make('012 34 56 78', 'BE')->formatRFC3966();       // +32-12-34-56-78
PhoneNumber::make('012/34.56.78', 'BE')->formatNational();      // 012 34 56 78

// Formats so the number can be called straight from the provided country.
PhoneNumber::make('012 34 56 78', 'BE')->formatForCountry('BE'); // 012 34 56 78
PhoneNumber::make('012 34 56 78', 'BE')->formatForCountry('NL'); // 00 32 12 34 56 78
PhoneNumber::make('012 34 56 78', 'BE')->formatForCountry('US'); // 011 32 12 34 56 78

// Formats so the number can be clicked on and called straight from the provided country using a cellphone.
PhoneNumber::make('012 34 56 78', 'BE')->formatForMobileDialingInCountry('BE'); // 012345678
PhoneNumber::make('012 34 56 78', 'BE')->formatForMobileDialingInCountry('NL'); // +3212345678
PhoneNumber::make('012 34 56 78', 'BE')->formatForMobileDialingInCountry('US'); // +3212345678

Number information

Get some information about the phone number:

PhoneNumber::make('012 34 56 78', 'BE')->getType();              // 'fixed_line'
PhoneNumber::make('012 34 56 78', 'BE')->isOfType('fixed_line'); // true
PhoneNumber::make('012 34 56 78', 'BE')->getCountry();           // 'BE'
PhoneNumber::make('012 34 56 78', 'BE')->isOfCountry('BE');      // true
PhoneNumber::make('+32 12 34 56 78')->isOfCountry('BE');         // true

Helper function

The package exposes the phone() helper function that returns a Propaganistas\LaravelPhone\PhoneNumber instance or the formatted string if $format was provided:

phone($number, $country = [], $format = null)

Database considerations

Disclaimer: Phone number handling is quite different in each application. The topics mentioned below are therefore meant as a set of thought starters; support will not be provided.

Storing phone numbers in a database has always been a speculative topic and there's simply no silver bullet. It all depends on your application's requirements. Here are some things to take into account, along with an implementation suggestion. Your ideal database setup will probably be a combination of some of the pointers detailed below.

Uniqueness

The E.164 format globally and uniquely identifies a phone number across the world. It also inherently implies a specific country and can be supplied as-is to the phone() helper.

You'll need:

  • One column to store the phone number
  • To format the phone number to E.164 before persisting it

Example:

  • User input = 012/45.65.78
  • Database column
    • phone (varchar) = +3212456578

Presenting the phone number the way it was inputted

If you store formatted phone numbers the raw user input will unretrievably get lost. It may be beneficial to present your users with their very own inputted phone number, for example in terms of improved user experience.

You'll need:

  • Two columns to store the raw input and the correlated country

Example:

  • User input = 012/34.56.78
  • Database columns
    • phone (varchar) = 012/34.56.78
    • phone_country (varchar) = BE

Supporting searches

Searching through phone numbers can quickly become ridiculously complex and will always require deep understanding of the context and extent of your application. Here's a possible approach covering quite a lot of "natural" use cases.

You'll need:

  • Three additional columns to store searchable variants of the phone number:
    • Normalized input (raw input with all non-alpha characters stripped)
    • National formatted phone number (with all non-alpha characters stripped)
    • E.164 formatted phone number
  • Probably a saving() observer (or equivalent) to prefill the variants before persistence
  • An extensive search query utilizing the searchable variants

Example:

  • User input = 12/34.56.78
  • Observer method:
    public function saving(User $user)
    {
        if ($user->isDirty('phone') && $user->phone) {
            $user->phone_normalized = preg_replace('[^0-9]', '', $user->phone);
            $user->phone_national = preg_replace('[^0-9]', '', phone($user->phone, $user->phone_country)->formatNational());
            $user->phone_e164 = phone($user->phone, $user->phone_country)->formatE164();
        }
    }
  • Database columns
    • phone_normalized (varchar) = 12345678
    • phone_national (varchar) = 012345678
    • phone_e164 (varchar) = +3212345678
  • Search query:
    // $search holds the search term
    User::where(function($query) use ($search) {
      $query->where('phone_normalized', 'LIKE', preg_replace('[^0-9]', '', $search) . '%')
            ->orWhere('phone_national', 'LIKE', preg_replace('[^0-9]', '', $search) . '%')
            ->orWhere('phone_e164', 'LIKE', preg_replace('[^+0-9]', '', $search) . '%')
    });
Comments
  • Error validating with mobile type

    Error validating with mobile type "InvalidParameterException"

    The following returns an error "InvalidParameterException" when you use a validation rule such as 'phone' => 'phone:US,BE,mobile'

    It works if you remove the mobile instead: 'phone' => 'phone:US,BE'

    Curiously, fixed_line works.

    bug 
    opened by lyonlim 13
  • Add PhoneNumberCast

    Add PhoneNumberCast

    This PR aims to add a custom cast (introduced in Laravel 7.x) for PhoneNumber.

    Given the ff schema: | users | | --- | | id | | name | | email | | contact_number | | contact_number_country |

    You can now do this:

    use Propaganistas\LaravelPhone\Models\HasPhoneNumber;
    use Propaganistas\LaravelPhone\Models\PhoneNumberCast;
    
    class User extends Model implements HasPhoneNumber
    {
        protected $casts = [
            'contact_number' => PhoneNumberCast::Class
        ];
    
        public function getPhoneNumberCountryColumn($field)
        {
            return 'contact_number_country';
        }
    }
    

    This also supports multiple phone numbers with different country locale.

    | users | | --- | | id | | name | | email | | contact_number | | contact_number_country | | emergency_number | | emergency_number_country |

    use Propaganistas\LaravelPhone\Models\HasPhoneNumber;
    use Propaganistas\LaravelPhone\Models\PhoneNumberCast;
    
    class User extends Model implements HasPhoneNumber
    {
        protected $casts = [
            'contact_number' => PhoneNumberCast::Class
            'emergency_number' => PhoneNumberCast::Class
        ];
    
        public function getPhoneNumberCountryColumn($field)
        {
            switch ($field) {
                case 'contact_number':
                    return 'contact_number_country';
                case 'emergency_number'
                    return 'emergency_number_country';
            }
        }
    }
    
    opened by juliomotol 11
  • Can't catch ParseNumberException

    Can't catch ParseNumberException

    captura de pantalla 2018-12-03 a la s 11 28 39 Hello im doing the following block of code

    try {
                $phone = PhoneNumber::make($phone);
    
            } catch (\libphonenumber\NumberParseException $exception) {
                $response['message'] = 'Invalid phone number';
                return $response;
    
            }
    

    And the try catch is not catching the Exception, any ideas?

    support 
    opened by Efrain177 9
  • Guess country by full number

    Guess country by full number

    Hi, is there a possibility to validate without country (or guess country) having only full number (e.g. +12512512512) I need to validate number, but I don't have country field.

    For example this frontend libray https://github.com/Bluefieldscom/intl-tel-input uses Google LibPhoneNumber and could guess country by full number.

    feature request 
    opened by andriytkachiv 8
  • PHP 8.1 deprecated issues

    PHP 8.1 deprecated issues

    Cannot run this package on PHP 8.1. I get the following errors:

    PHP Deprecated: Return type of Propaganistas\LaravelPhone\PhoneNumber::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/vagrant/code/vendor/propaganistas/laravel-phone/src/PhoneNumber.php on line 375

    PHP Deprecated: Propaganistas\LaravelPhone\PhoneNumber implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /home/vagrant/code/vendor/propaganistas/laravel-phone/src/PhoneNumber.php on line 22

    PHP Deprecated: Return type of League\ISO3166\ISO3166::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/vagrant/code/vendor/league/iso3166/src/ISO3166.php on line 111

    PHP Deprecated: Return type of League\ISO3166\ISO3166::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/vagrant/code/vendor/league/iso3166/src/ISO3166.php on line 123

    I reproduced this error on two different servers running PHP 8.1 and a new Laravel project. I am getting the error when I try to use the validation rule in a form request. The package worked after I reverted to PHP 8.

    • laravel/framework v8.68.1
    • propaganistas/laravel-phone v4.3.2
    opened by emaadali 7
  • Validation rule does not exist

    Validation rule does not exist

    When trying to use the validation part of the lib i get either "The method validatePhone does not exist" or "Rule::phone() Does not exist".

    Using the helper function however, works.

    Laravel 5.8.5 PHP 7.3

    Tried:

    • with the provider class included and without it.
    • Reinstalling, Clearing composer cache
    • Clearing laravel cache, compiled and optimizing
    • dump-autoload
    • Staring into the mirror stating "validatePhone" Three times whilst turning around
    opened by pentacore 7
  • Getting country international prefix by country code exmple for us +1 or IL +972 etc

    Getting country international prefix by country code exmple for us +1 or IL +972 etc

    Prior to filing a bug, please check the origin of the unexpected behavior you're facing. Any issues that do not follow this guide will be closed without notice.

    1. First try to reproduce the bug in the demo application (https://laravel-phone.herokuapp.com). If all works well, go to step 3.

    2. Still seeing unexpected behavior? Congratulations, you've possibly found a bug! Please go ahead and create an issue. Describe clearly what you're trying to achieve, along with some erroneous phone numbers and full validation parameters.

    3. Try to reproduce the bug in libphonenumber's demo (https://giggsey.com/libphonenumber) and take note of the isValidNumber() and isValidNumberForRegion() results. If all works well, go to step 5.

    4. Still seeing unexpected behavior? Please open an issue at libphonenumber (https://github.com/giggsey/libphonenumber-for-php).

    5. This isn't a bug in the package nor in libphonenumber. Fix your own code.

    opened by ihabhamad 7
  • Problems with `GB` number [v3.0.3]

    Problems with `GB` number [v3.0.3]

    Psy Shell v0.8.14 (PHP 7.1.11 — cli) by Justin Hileman
    
    >>> $number = phone('447937947973', 'GB');
    => Propaganistas\LaravelPhone\PhoneNumber {#907}
    >>> $number->getCountry();
    Propaganistas\LaravelPhone\Exceptions\NumberParseException with message 'Country specification for number "447937947973" required.'
    
    >>> $number = phone('12252280247', 'US');
    => Propaganistas\LaravelPhone\PhoneNumber {#935}
    >>> $number->getCountry();
    => "US"
    

    What am I doing wrong?

    bug 
    opened by arubacao 7
  • In Laravel 5.4, it is throwing the error instead of returning as validation failure message

    In Laravel 5.4, it is throwing the error instead of returning as validation failure message

    Basically, my validation rule is defined as $rules = ['mobile_number'=>'required|phone:IN,mobile'] when the input is

    1. +919900990099 - validation passes
    2. +919900 - I validation failed with error message The mobile number field contains an invalid number.
    3. +919 - I get exception

    NumberParseException in PhoneNumberUtil.php line 1477: The string supplied is too short to be a phone number.

    1. when empty value is passed - I get exception

    NumberParseException in PhoneNumberUtil.php line 1381: The phone number supplied was null.

    I am expecting the Exception messages to be returned as validation error messages.

    Hope reporting the issue help improving this lovely package.

    support 
    opened by karmendra 7
  • Add Laravel 6.0 compatibility and fix depreciated PHPUnit methods

    Add Laravel 6.0 compatibility and fix depreciated PHPUnit methods

    This PR lays out the ground work for Laravel 6.0 compatibility, however there is currently no stable release of Orchestra/TestBench version (4.0) for Laravel 6.0.

    Once it's ready we can add it into the travis matrix and run the tests.

    opened by stevebauman 6
  • Storing in database

    Storing in database

    What would be the correct way to store phone + country code in DB?

    Currently thinking to seperate country_code and phone_number

            $table->string('phone_country_code')->nullable();
            $table->string('phone_number')->nullable();
    

    However, brings me to questions such as:

    • What about unique validation? If this is separated into two columns it would be harder to validate.
    • Fetching a user by a provided phone number would be a bit more difficult than simply doing ->wherePhone($phoneNo)

    How are you guys storing?

    support 
    opened by simplenotezy 6
Releases(4.4.0)
  • 4.4.0(Nov 10, 2022)

    New functionality

    • Add equals() and notEquals() methods to PhoneNumber by @Propaganistas

    What's Changed

    • Update doc block for phone helper by @skylerkatz in https://github.com/Propaganistas/Laravel-Phone/pull/205

    New Contributors

    • @skylerkatz made their first contribution in https://github.com/Propaganistas/Laravel-Phone/pull/205

    Full Changelog: https://github.com/Propaganistas/Laravel-Phone/compare/4.3.8...4.4.0

    Source code(tar.gz)
    Source code(zip)
  • 4.3.8(Sep 4, 2022)

    What's Changed

    • [PHP 8.2] Fix ${var} string interpolation deprecation by @Ayesh in https://github.com/Propaganistas/Laravel-Phone/pull/198
    • Lazy resolving validator by @EgorGruzdev in https://github.com/Propaganistas/Laravel-Phone/pull/202

    New Contributors

    • @Ayesh made their first contribution in https://github.com/Propaganistas/Laravel-Phone/pull/198
    • @EgorGruzdev made their first contribution in https://github.com/Propaganistas/Laravel-Phone/pull/202

    Full Changelog: https://github.com/Propaganistas/Laravel-Phone/compare/4.3.7...4.3.8

    Source code(tar.gz)
    Source code(zip)
  • 4.3.7(Jun 8, 2022)

  • 4.3.6(Jan 15, 2022)

  • 4.3.5(Dec 9, 2021)

    What's Changed

    • Fix PHP8.1 deprecation warnings by @Propaganistas in https://github.com/Propaganistas/Laravel-Phone/pull/190

    Full Changelog: https://github.com/Propaganistas/Laravel-Phone/compare/4.3.4...4.3.5

    Source code(tar.gz)
    Source code(zip)
  • 4.3.4(Nov 28, 2021)

  • 4.3.3(Nov 11, 2021)

  • 4.3.2(Oct 27, 2021)

    What's Changed

    • improved lenient parsing of phone numbers by @scybulski in https://github.com/Propaganistas/Laravel-Phone/pull/183

    New Contributors

    • @scybulski made their first contribution in https://github.com/Propaganistas/Laravel-Phone/pull/183

    Full Changelog: https://github.com/Propaganistas/Laravel-Phone/compare/4.3.1...4.3.2

    Source code(tar.gz)
    Source code(zip)
  • 4.3.0(Feb 11, 2021)

  • 4.2.7(Dec 6, 2020)

  • 4.2.6(Oct 25, 2020)

  • 4.2.5(Sep 8, 2020)

  • 4.2.4(Jun 22, 2020)

  • 4.2.3(Mar 3, 2020)

  • 4.2.2(Sep 4, 2019)

    Dropped support for Laravel 5.4 and below.

    Added support for Laravel 6. Since Laravel now follows semver, the package should be good to go for all future 6.x releases as well.

    Source code(tar.gz)
    Source code(zip)
  • 4.2.1(May 17, 2019)

  • 4.2.0(Apr 25, 2019)

  • 4.1.4(Apr 10, 2019)

    Bug fix:

    • #111 : Resolve number types in the Rule class instead of offloading it to the validator.

    Highly unexpected breaking change:

    • If you happen to use the static $types property of ParsesTypes, it is now renamed to $resolvedTypes.
    Source code(tar.gz)
    Source code(zip)
  • 4.1.3(Mar 11, 2019)

  • 4.1.2(Feb 25, 2019)

    Buckle up for Laravel 5.8!

    Because of the return type changes in PHPunit 8, support for PHP 7.0 needed to be dropped. Since this only affects the tests and the actual code is left untouched, you can safely use --ignore-platform-reqs if you're using 7.0.

    Source code(tar.gz)
    Source code(zip)
  • 4.1.1(Feb 18, 2019)

    Non-breaking change

    • Formatting a PhoneNumber instance now outputs a different exception message when a country was provided but is rather mismatched to the number.

    • Also added the getNumber() and getCountries() methods to NumberParseException

    Source code(tar.gz)
    Source code(zip)
  • 4.1.0(Dec 5, 2018)

    Non-breaking change:

    • #98 - Invalid validation parameters are now ignored instead of raising an InvalidParameterException. This won't affect previously defined validations. A cleanup of your exception handling could be applicable but is not mandatory.
    Source code(tar.gz)
    Source code(zip)
  • 4.0.4(Sep 24, 2018)

  • 4.0.3(Aug 27, 2018)

  • 4.0.2(Mar 22, 2018)

  • 4.0.1(Mar 8, 2018)

  • 4.0.0(Feb 14, 2018)

  • 3.1.0(Feb 13, 2018)

    Enhancements

    • #77 - (potentially breaking) In case of invalid country codes in the country field, validate to false instead of throwing InvalidCountryException
    • Prevent validator parameter hijacking through the country field

    Bug fix

    • #60 - Rule helper class now works properly for phone number types
    Source code(tar.gz)
    Source code(zip)
  • 3.0.5(Feb 11, 2018)

Phone number functionality for Laravel

Laravel Phone Adds phone number functionality to Laravel and Lumen based on the PHP port of Google's libphonenumber API by giggsey. Table of Contents

null 2.1k Dec 31, 2022
Laravel Dutch Phone Number Validator

Laravel Dutch Phone Number Validator Validate if the given phone number is a valid Dutch phone number Table of Contents Installation Usage Translation

Tim Wassenburg 0 May 30, 2022
Integrates libphonenumber into your Symfony application

PhoneNumberBundle This bundle is a fork of misd-service-development/phone-number-bundle. As this project doesn't look maintained anymore, we decided t

Olivier Dolbeau 161 Dec 23, 2022
A Laravel package that adds a simple image functionality to any Laravel model

Laraimage A Laravel package that adds a simple image functionality to any Laravel model Introduction Laraimage served four use cases when using images

Hussein Feras 52 Jul 17, 2022
A laravel package for sending otp to mobile phone

A laravel package for sending otp to mobile phone Installation composer require gabbyti/bulksmsnigeria-otp Vendor Publish This package includes a conf

Gabriel 3 May 10, 2021
A package for Myanmar Font, Phone and other Myanmar tools using Laravel Macro

Laravel Myanmar Tools A package for Myanmar Font, Phone and other Myanmar tools using Laravel Macro. Installation composer require pyaesoneaung/larave

Pyae Sone Aung 22 Dec 20, 2022
This package provides convenient methods for making token code, sending and verifying mobile phone verification requests.

Laravel Mobile Verification Introduction Many web applications require users to verify their mobile phone numbers before using the application. Rather

M.Fouladgar 347 Dec 25, 2022
Example of using TALL stack to select country phone code.

Select country phone code using TALL stack About Example of using TALL stack to select country phone code. Each item represents a country. Each item h

Fernando Chagas 3 Jul 27, 2022
This is a Laravel port of the local_time gem from Basecamp.

This is a Laravel port of the local_time gem from Basecamp. It makes it easy to display date and time to users in their local time. Its Blade componen

Tony Messias 56 Oct 7, 2022
Asset Component is a port of Laravel 3 Asset for Orchestra Platform.

Asset Component is a port of Laravel 3 Asset for Orchestra Platform. The component main functionality is to allow asset declaration to be handle dynamically and asset dependencies can be resolve directly from the container. It however is not intended to becoma an asset pipeline package for Laravel, for such purpose we would recommend to use Grunt or Gulp.

Orchestra Platform 54 Mar 31, 2022
Magewire is a Laravel Livewire port for Magento 2.

Magewire is a Laravel Livewire port for Magento 2. The goal is to make it fun and easy to build modern, reactive and dynamic interfaces, without leaving the comfort of Magento's core layout and template systems. Magewire can be the missing piece when you intend to build dynamic and reactive features, but don't require or feel comfortable working with a full JavaScript framework like Vue or React.

Magewirephp 120 Jan 2, 2023
PHP port of Underscore.js

Underscore.php Underscore.php is a PHP port of Underscore.js. In addition to porting Underscore's functionality, Underscore.php includes matching unit

Brian Haveri 1.2k Dec 25, 2022
Laravel package to convert English numbers to Bangla number or Bangla text, Bangla month name and Bangla Money Format

Number to Bangla Number, Word or Month Name in Laravel | Get Wordpress Plugin Laravel package to convert English numbers to Bangla number or Bangla te

Md. Rakibul Islam 50 Dec 26, 2022
Laravel package to convert English numbers to Bangla number or Bangla text, Bangla month name and Bangla Money Format

Number to Bangla Number, Word or Month Name in Laravel | Get Wordpress Plugin Laravel package to convert English numbers to Bangla number or Bangla te

Md. Rakibul Islam 50 Dec 26, 2022
Log executed Laravel SQL queries and their line number and more

A lightweight laravel package for logging executed SQL queries, line number and more

Md.Harun-Ur-Rashid 31 Dec 21, 2022
Laravel Manager - provides some manager functionality for Laravel

Laravel Manager Laravel Manager was created by, and is maintained by Graham Campbell, and provides some manager functionality for Laravel. Feel free t

Graham Campbell 371 Dec 17, 2022
Laravel Manager provides some manager functionality for Laravel

Laravel Manager Laravel Manager was created by, and is maintained by Graham Campbell, and provides some manager functionality for Laravel. Feel free t

Graham Campbell 371 Jul 11, 2022
Livewire component that brings Spotlight/Alfred-like functionality to your Laravel application.

About LivewireUI Spotlight LivewireUI Spotlight is a Livewire component that provides Spotlight/Alfred-like functionality to your Laravel application.

Livewire UI 792 Jan 3, 2023
Useful blade components and functionality for most Laravel projects.

laravel-base Note: Package is still in early stages of development, so functionality is subject to change. LaravelBase is a package I've created to pr

Randall Wilk 3 Jan 16, 2022