uunmask2000_kk / assets_country
根據一些國家(地區)資訊,返回對應的國家(地區)縮碼國旗*
2.0.1
2023-01-05 14:27 UTC
Requires
- php: >=7.4
- pragmarx/countries: 0.8.2
- psr/simple-cache: ^1.0
Requires (Dev)
- ext-dom: *
- ext-zip: *
Suggests
- ext-zip: Needed to store or download multiple files at once.
README
composer 倉庫
initialize
require 'vendor/autoload.php';
use uunmask2000_kk\AssetsCountry\AssetsCountry;
$AssetsCountry = new AssetsCountry();
```text
### 獲取根據國家(地區)縮碼國旗 getAssetsCountryFlagByCountryCode
```text
input
$key = ? , default = "TW"
output
https://raw.githubusercontent.com/uunmask2000/assets_country/main/src/img/TW.png
```text
### 獲取根據國家(地區)國碼國旗 getAssetsCountryFlagByPhoneCode
```text
input
$key = ? , default = "886"
output
https://raw.githubusercontent.com/uunmask2000/assets_country/main/src/img/TW.png
```text
### 獲取所有國家(地區)國碼國旗 getAllAssetsCountryFlag
```text
input
output
[]
```text
### 獲取國家(地區)資訊,利用 code or dial_code getCountryFlagByColumn
```text
input
output
[]
```text