irando/country-codes 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

irando/country-codes

最新稳定版本:2.3.27

Composer 安装命令:

composer require irando/country-codes

包简介

The most complete country code list fpackage for laravel

README 文档

README

This is a Composer plugin that provides an automated version of Country Codes database.

This database is include: country iso codes, country names, country names with phone codes, phone codes as well as admin page to manage your list of data.

Screenshot

What you can do?

  • Get users country names
  • Get users phone numbers
  • Send OTP codes
  • Send message on messangers

Usage of this package are vary, those were just small examples of what you can do.

Also my main reason to build this package was to send WhatsApp message (specifically OTP codes).

Table Of Contents

Requirements

Source Version
Composer ^2.0
PHP ^7.4/^8.0 /^8.2

Installation

The only thing you need to do to make this work is adding this package as a dependency to your project:

composer require irando/country-codes

Usage

  1. Add following line in your config/app.php file
'providers' => [
    // ...
    Irando\CountryCodes\CountryCodesServiceProvider::class,
];
  1. Run either of commands below to publish package files
php artisan vendor:publish

And select id referred to:

Irando\CountryCodes\CountryCodesServiceProvider

OR

php artisan vendor:publish --tag=country-codes
  1. Run php artisan migrate to add countries table into your database
  2. Run php artisan db:seed --class=CountryCodesTableSeeder to seed countries data into countries table.

Note: In case of error after this command run composer dumpautoload and try again to seed database

Now visit your_url.tld/country-codes and you are set.

Customization

If you need (probably you do!) to customize the look, routing, functionality etc. of this package, at stage 2 of installation we deployed CountryCodes.php which is your table model, as well as view files at resources/views/vendor/irando/country-codes you can edit those files and create your own.

Contributing

All feedback / bug reports / pull requests are welcome.

You can support me for more open source projects by sponsoring this package

License

This code is released under the MIT license.

For the full copyright and license information, please view the LICENSE file distributed with this source code.

Developed by Robert Nicjoo at CV. IRANDO

统计信息

  • 总下载量: 211
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 20
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 20
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固