You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
172 lines
14 KiB
172 lines
14 KiB
<?php |
|
|
|
namespace App\Http\Controllers; |
|
|
|
use Illuminate\Http\Request; |
|
|
|
class CurrencyController extends Controller |
|
{ |
|
|
|
public function list() { |
|
$CURRENCY_DATA = array( |
|
// array("cc" => "AED", "symbol" => "\u062f.\u0625;", "name" => "UAE dirham"), |
|
// array("cc" => "AFN", "symbol" => "Afs", "name" => "Afghan afghani"), |
|
// array("cc" => "ALL", "symbol" => "L", "name" => "Albanian lek"), |
|
// array("cc" => "AMD", "symbol" => "AMD", "name" => "Armenian dram"), |
|
// array("cc" => "ANG", "symbol" => "NA\u0192", "name" => "Netherlands Antillean gulden"), |
|
// array("cc" => "AOA", "symbol" => "Kz", "name" => "Angolan kwanza"), |
|
// array("cc" => "ARS", "symbol" => "$", "name" => "Argentine peso"), |
|
// array("cc" => "AUD", "symbol" => "$", "name" => "Australian dollar"), |
|
// array("cc" => "AWG", "symbol" => "\u0192", "name" => "Aruban florin"), |
|
// array("cc" => "AZN", "symbol" => "AZN", "name" => "Azerbaijani manat"), |
|
// array("cc" => "BAM", "symbol" => "KM", "name" => "Bosnia and Herzegovina konvertibilna marka"), |
|
// array("cc" => "BBD", "symbol" => "Bds$", "name" => "Barbadian dollar"), |
|
// array("cc" => "BDT", "symbol" => "\u09f3", "name" => "Bangladeshi taka"), |
|
// array("cc" => "BGN", "symbol" => "BGN", "name" => "Bulgarian lev"), |
|
// array("cc" => "BHD", "symbol" => ".\u062f.\u0628", "name" => "Bahraini dinar"), |
|
// array("cc" => "BIF", "symbol" => "FBu", "name" => "Burundi franc"), |
|
// array("cc" => "BMD", "symbol" => "BD$", "name" => "Bermudian dollar"), |
|
// array("cc" => "BND", "symbol" => "B$", "name" => "Brunei dollar"), |
|
// array("cc" => "BOB", "symbol" => "Bs.", "name" => "Bolivian boliviano"), |
|
// array("cc" => "BRL", "symbol" => "R$", "name" => "Brazilian real"), |
|
// array("cc" => "BSD", "symbol" => "B$", "name" => "Bahamian dollar"), |
|
// array("cc" => "BTN", "symbol" => "Nu.", "name" => "Bhutanese ngultrum"), |
|
// array("cc" => "BWP", "symbol" => "P", "name" => "Botswana pula"), |
|
// array("cc" => "BYR", "symbol" => "Br", "name" => "Belarusian ruble"), |
|
// array("cc" => "BZD", "symbol" => "BZ$", "name" => "Belize dollar"), |
|
// array("cc" => "CAD", "symbol" => "$", "name" => "Canadian dollar"), |
|
// array("cc" => "CDF", "symbol" => "F", "name" => "Congolese franc"), |
|
// array("cc" => "CHF", "symbol" => "Fr.", "name" => "Swiss franc"), |
|
// array("cc" => "CLP", "symbol" => "$", "name" => "Chilean peso"), |
|
// array("cc" => "CNY", "symbol" => "\u00a5", "name" => "Chinese/Yuan renminbi"), |
|
// array("cc" => "COP", "symbol" => "Col$", "name" => "Colombian peso"), |
|
// array("cc" => "CRC", "symbol" => "\u20a1", "name" => "Costa Rican colon"), |
|
// array("cc" => "CUC", "symbol" => "$", "name" => "Cuban peso"), |
|
// array("cc" => "CVE", "symbol" => "Esc", "name" => "Cape Verdean escudo"), |
|
// array("cc" => "CZK", "symbol" => "K\u010d", "name" => "Czech koruna"), |
|
// array("cc" => "DJF", "symbol" => "Fdj", "name" => "Djiboutian franc"), |
|
// array("cc" => "DKK", "symbol" => "Kr", "name" => "Danish krone"), |
|
// array("cc" => "DOP", "symbol" => "RD$", "name" => "Dominican peso"), |
|
// array("cc" => "DZD", "symbol" => "\u062f.\u062c", "name" => "Algerian dinar"), |
|
// array("cc" => "EEK", "symbol" => "KR", "name" => "Estonian kroon"), |
|
// array("cc" => "EGP", "symbol" => "\u00a3", "name" => "Egyptian pound"), |
|
// array("cc" => "ERN", "symbol" => "Nfa", "name" => "Eritrean nakfa"), |
|
// array("cc" => "ETB", "symbol" => "Br", "name" => "Ethiopian birr"), |
|
// array("cc" => "EUR", "symbol" => "\u20ac", "name" => "European Euro"), |
|
// array("cc" => "FJD", "symbol" => "FJ$", "name" => "Fijian dollar"), |
|
// array("cc" => "FKP", "symbol" => "\u00a3", "name" => "Falkland Islands pound"), |
|
// array("cc" => "GBP", "symbol" => "\u00a3", "name" => "British pound"), |
|
// array("cc" => "GEL", "symbol" => "GEL", "name" => "Georgian lari"), |
|
// array("cc" => "GHS", "symbol" => "GH\u20b5", "name" => "Ghanaian cedi"), |
|
// array("cc" => "GIP", "symbol" => "\u00a3", "name" => "Gibraltar pound"), |
|
// array("cc" => "GMD", "symbol" => "D", "name" => "Gambian dalasi"), |
|
// array("cc" => "GNF", "symbol" => "FG", "name" => "Guinean franc"), |
|
// array("cc" => "GQE", "symbol" => "CFA", "name" => "Central African CFA franc"), |
|
// array("cc" => "GTQ", "symbol" => "Q", "name" => "Guatemalan quetzal"), |
|
// array("cc" => "GYD", "symbol" => "GY$", "name" => "Guyanese dollar"), |
|
// array("cc" => "HKD", "symbol" => "HK$", "name" => "Hong Kong dollar"), |
|
// array("cc" => "HNL", "symbol" => "L", "name" => "Honduran lempira"), |
|
// array("cc" => "HRK", "symbol" => "kn", "name" => "Croatian kuna"), |
|
// array("cc" => "HTG", "symbol" => "G", "name" => "Haitian gourde"), |
|
// array("cc" => "HUF", "symbol" => "Ft", "name" => "Hungarian forint"), |
|
array("cc" => "IDR", "symbol" => "Rp", "name" => "Indonesian rupiah"), |
|
// array("cc" => "ILS", "symbol" => "\u20aa", "name" => "Israeli new sheqel"), |
|
// array("cc" => "INR", "symbol" => "\u20B9", "name" => "Indian rupee"), |
|
// array("cc" => "IQD", "symbol" => "\u062f.\u0639", "name" => "Iraqi dinar"), |
|
// array("cc" => "IRR", "symbol" => "IRR", "name" => "Iranian rial"), |
|
// array("cc" => "ISK", "symbol" => "kr", "name" => "Icelandic kr\u00f3na"), |
|
// array("cc" => "JMD", "symbol" => "J$", "name" => "Jamaican dollar"), |
|
// array("cc" => "JOD", "symbol" => "JOD", "name" => "Jordanian dinar"), |
|
// array("cc" => "JPY", "symbol" => "\u00a5", "name" => "Japanese yen"), |
|
// array("cc" => "KES", "symbol" => "KSh", "name" => "Kenyan shilling"), |
|
// array("cc" => "KGS", "symbol" => "\u0441\u043e\u043c", "name" => "Kyrgyzstani som"), |
|
// array("cc" => "KHR", "symbol" => "\u17db", "name" => "Cambodian riel"), |
|
// array("cc" => "KMF", "symbol" => "KMF", "name" => "Comorian franc"), |
|
// array("cc" => "KPW", "symbol" => "W", "name" => "North Korean won"), |
|
// array("cc" => "KRW", "symbol" => "W", "name" => "South Korean won"), |
|
// array("cc" => "KWD", "symbol" => "KWD", "name" => "Kuwaiti dinar"), |
|
// array("cc" => "KYD", "symbol" => "KY$", "name" => "Cayman Islands dollar"), |
|
// array("cc" => "KZT", "symbol" => "T", "name" => "Kazakhstani tenge"), |
|
// array("cc" => "LAK", "symbol" => "KN", "name" => "Lao kip"), |
|
// array("cc" => "LBP", "symbol" => "\u00a3", "name" => "Lebanese lira"), |
|
// array("cc" => "LKR", "symbol" => "Rs", "name" => "Sri Lankan rupee"), |
|
// array("cc" => "LRD", "symbol" => "L$", "name" => "Liberian dollar"), |
|
// array("cc" => "LSL", "symbol" => "M", "name" => "Lesotho loti"), |
|
// array("cc" => "LTL", "symbol" => "Lt", "name" => "Lithuanian litas"), |
|
// array("cc" => "LVL", "symbol" => "Ls", "name" => "Latvian lats"), |
|
// array("cc" => "LYD", "symbol" => "LD", "name" => "Libyan dinar"), |
|
// array("cc" => "MAD", "symbol" => "MAD", "name" => "Moroccan dirham"), |
|
// array("cc" => "MDL", "symbol" => "MDL", "name" => "Moldovan leu"), |
|
// array("cc" => "MGA", "symbol" => "FMG", "name" => "Malagasy ariary"), |
|
// array("cc" => "MKD", "symbol" => "MKD", "name" => "Macedonian denar"), |
|
// array("cc" => "MMK", "symbol" => "K", "name" => "Myanma kyat"), |
|
// array("cc" => "MNT", "symbol" => "\u20ae", "name" => "Mongolian tugrik"), |
|
// array("cc" => "MOP", "symbol" => "P", "name" => "Macanese pataca"), |
|
// array("cc" => "MRO", "symbol" => "UM", "name" => "Mauritanian ouguiya"), |
|
// array("cc" => "MUR", "symbol" => "Rs", "name" => "Mauritian rupee"), |
|
// array("cc" => "MVR", "symbol" => "Rf", "name" => "Maldivian rufiyaa"), |
|
// array("cc" => "MWK", "symbol" => "MK", "name" => "Malawian kwacha"), |
|
// array("cc" => "MXN", "symbol" => "$", "name" => "Mexican peso"), |
|
// array("cc" => "MYR", "symbol" => "RM", "name" => "Malaysian ringgit"), |
|
// array("cc" => "MZM", "symbol" => "MTn", "name" => "Mozambican metical"), |
|
// array("cc" => "NAD", "symbol" => "N$", "name" => "Namibian dollar"), |
|
// array("cc" => "NGN", "symbol" => "\u20a6", "name" => "Nigerian naira"), |
|
// array("cc" => "NIO", "symbol" => "C$", "name" => "Nicaraguan c\u00f3rdoba"), |
|
// array("cc" => "NOK", "symbol" => "kr", "name" => "Norwegian krone"), |
|
// array("cc" => "NPR", "symbol" => "NRs", "name" => "Nepalese rupee"), |
|
// array("cc" => "NZD", "symbol" => "NZ$", "name" => "New Zealand dollar"), |
|
// array("cc" => "OMR", "symbol" => "OMR", "name" => "Omani rial"), |
|
// array("cc" => "PAB", "symbol" => "B./", "name" => "Panamanian balboa"), |
|
// array("cc" => "PEN", "symbol" => "S/.", "name" => "Peruvian nuevo sol"), |
|
// array("cc" => "PGK", "symbol" => "K", "name" => "Papua New Guinean kina"), |
|
// array("cc" => "PHP", "symbol" => "\u20b1", "name" => "Philippine peso"), |
|
// array("cc" => "PKR", "symbol" => "Rs.", "name" => "Pakistani rupee"), |
|
// array("cc" => "PLN", "symbol" => "z\u0142", "name" => "Polish zloty"), |
|
// array("cc" => "PYG", "symbol" => "\u20b2", "name" => "Paraguayan guarani"), |
|
// array("cc" => "QAR", "symbol" => "QR", "name" => "Qatari riyal"), |
|
// array("cc" => "RON", "symbol" => "L", "name" => "Romanian leu"), |
|
// array("cc" => "RSD", "symbol" => "din.", "name" => "Serbian dinar"), |
|
// array("cc" => "RUB", "symbol" => "R", "name" => "Russian ruble"), |
|
// array("cc" => "SAR", "symbol" => "SR", "name" => "Saudi riyal"), |
|
// array("cc" => "SBD", "symbol" => "SI$", "name" => "Solomon Islands dollar"), |
|
// array("cc" => "SCR", "symbol" => "SR", "name" => "Seychellois rupee"), |
|
// array("cc" => "SDG", "symbol" => "SDG", "name" => "Sudanese pound"), |
|
// array("cc" => "SEK", "symbol" => "kr", "name" => "Swedish krona"), |
|
// array("cc" => "SGD", "symbol" => "S$", "name" => "Singapore dollar"), |
|
// array("cc" => "SHP", "symbol" => "\u00a3", "name" => "Saint Helena pound"), |
|
// array("cc" => "SLL", "symbol" => "Le", "name" => "Sierra Leonean leone"), |
|
// array("cc" => "SOS", "symbol" => "Sh.", "name" => "Somali shilling"), |
|
// array("cc" => "SRD", "symbol" => "$", "name" => "Surinamese dollar"), |
|
// array("cc" => "SYP", "symbol" => "LS", "name" => "Syrian pound"), |
|
// array("cc" => "SZL", "symbol" => "E", "name" => "Swazi lilangeni"), |
|
// array("cc" => "THB", "symbol" => "\u0e3f", "name" => "Thai baht"), |
|
// array("cc" => "TJS", "symbol" => "TJS", "name" => "Tajikistani somoni"), |
|
// array("cc" => "TMT", "symbol" => "m", "name" => "Turkmen manat"), |
|
// array("cc" => "TND", "symbol" => "DT", "name" => "Tunisian dinar"), |
|
// array("cc" => "TRY", "symbol" => "TRY", "name" => "Turkish new lira"), |
|
// array("cc" => "TTD", "symbol" => "TT$", "name" => "Trinidad and Tobago dollar"), |
|
// array("cc" => "TWD", "symbol" => "NT$", "name" => "New Taiwan dollar"), |
|
// array("cc" => "TZS", "symbol" => "TZS", "name" => "Tanzanian shilling"), |
|
// array("cc" => "UAH", "symbol" => "UAH", "name" => "Ukrainian hryvnia"), |
|
// array("cc" => "UGX", "symbol" => "USh", "name" => "Ugandan shilling"), |
|
array("cc" => "USD", "symbol" => "US$", "name" => "United States dollar"), |
|
// array("cc" => "UYU", "symbol" => '$U', "name" => "Uruguayan peso"), |
|
// array("cc" => "UZS", "symbol" => "UZS", "name" => "Uzbekistani som"), |
|
// array("cc" => "VEB", "symbol" => "Bs", "name" => "Venezuelan bolivar"), |
|
// array("cc" => "VND", "symbol" => "\u20ab", "name" => "Vietnamese dong"), |
|
// array("cc" => "VUV", "symbol" => "VT", "name" => "Vanuatu vatu"), |
|
// array("cc" => "WST", "symbol" => "WS$", "name" => "Samoan tala"), |
|
// array("cc" => "XAF", "symbol" => "CFA", "name" => "Central African CFA franc"), |
|
// array("cc" => "XCD", "symbol" => "EC$", "name" => "East Caribbean dollar"), |
|
// array("cc" => "XDR", "symbol" => "SDR", "name" => "Special Drawing Rights"), |
|
// array("cc" => "XOF", "symbol" => "CFA", "name" => "West African CFA franc"), |
|
// array("cc" => "XPF", "symbol" => "F", "name" => "CFP franc"), |
|
// array("cc" => "YER", "symbol" => "YER", "name" => "Yemeni rial"), |
|
// array("cc" => "ZAR", "symbol" => "R", "name" => "South African rand"), |
|
// array("cc" => "ZMK", "symbol" => "ZK", "name" => "Zambian kwacha"), |
|
// array("cc" => "ZWR", "symbol" => "Z$", "name" => "Zimbabwean dollar") |
|
); |
|
|
|
return response()->json(['status'=>'success','code'=>200,'data'=>$CURRENCY_DATA, 'totalRecord'=>count($CURRENCY_DATA)], 200); |
|
} |
|
} |