Skip to content

Commit

Permalink
Merge pull request tomiiide#1 from daniel0101/master
Browse files Browse the repository at this point in the history
Adds Bank Code to sql, json and array
  • Loading branch information
tomiiide authored Sep 14, 2018
2 parents 99eca57 + 13bc337 commit 9964a9a
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 69 deletions.
48 changes: 25 additions & 23 deletions banks.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
//.banks
[{ "id": "1", "name": "Access Bank" },
{ "id": "2", "name": "Citibank" },
{ "id": "3", "name": "Diamond Bank" },
{ "id": "4", "name": "Dynamic Standard Bank" },
{ "id": "5", "name": "Ecobank Nigeria" },
{ "id": "6", "name": "Fidelity Bank Nigeria" },
{ "id": "7", "name": "First Bank of Nigeria" },
{ "id": "8", "name": "First City Monument Bank" },
{ "id": "9", "name": "Guaranty Trust Bank" },
{ "id": "10", "name": "Heritage Bank Plc" },
{ "id": "11", "name": "Keystone Bank Limited" },
{ "id": "12", "name": "Providus Bank Plc" },
{ "id": "13", "name": "Skye Bank" },
{ "id": "14", "name": "Stanbic IBTC Bank Nigeria Limited" },
{ "id": "15", "name": "Standard Chartered Bank" },
{ "id": "16", "name": "Sterling Bank" },
{ "id": "17", "name": "Suntrust Bank Nigeria Limited" },
{ "id": "18", "name": "Union Bank of Nigeria" },
{ "id": "19", "name": "United Bank for Africa" },
{ "id": "20", "name": "Unity Bank Plc" },
{ "id": "21", "name": "Wema Bank" },
{ "id": "22", "name": "Zenith Bank" }
]
[
{ "id": "1", "name": "Access Bank" ,"code":"044" },
{ "id": "2", "name": "Citibank","code":"023" },
{ "id": "3", "name": "Diamond Bank","code":"063" },
{ "id": "4", "name": "Dynamic Standard Bank","code":"" },
{ "id": "5", "name": "Ecobank Nigeria","code":"050" },
{ "id": "6", "name": "Fidelity Bank Nigeria","code":"070" },
{ "id": "7", "name": "First Bank of Nigeria","code":"011" },
{ "id": "8", "name": "First City Monument Bank","code":"214" },
{ "id": "9", "name": "Guaranty Trust Bank","code":"058" },
{ "id": "10", "name": "Heritage Bank Plc","code":"030" },
{ "id": "11", "name": "Jaiz Bank","code":"301" },
{ "id": "12", "name": "Keystone Bank Limited","code":"082" },
{ "id": "13", "name": "Providus Bank Plc","code":"101" },
{ "id": "14", "name": "Skye Bank","code":"076" },
{ "id": "15", "name": "Stanbic IBTC Bank Nigeria Limited","code":"221" },
{ "id": "16", "name": "Standard Chartered Bank","code":"068" },
{ "id": "17", "name": "Sterling Bank","code":"232" },
{ "id": "18", "name": "Suntrust Bank Nigeria Limited","code":"100" },
{ "id": "19", "name": "Union Bank of Nigeria","code":"032" },
{ "id": "20", "name": "United Bank for Africa","code":"033" },
{ "id": "21", "name": "Unity Bank Plc","code":"215" },
{ "id": "22", "name": "Wema Bank","code":"035" },
{ "id": "23", "name": "Zenith Bank","code":"057" }
]
45 changes: 23 additions & 22 deletions banks.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,27 @@

// `Forms`.`banks`
$banks = array(
array('id' => '1','name' => 'Access Bank'),
array('id' => '2','name' => 'Citibank'),
array('id' => '3','name' => 'Diamond Bank'),
array('id' => '4','name' => 'Dynamic Standard Bank'),
array('id' => '5','name' => 'Ecobank Nigeria'),
array('id' => '6','name' => 'Fidelity Bank Nigeria'),
array('id' => '7','name' => 'First Bank of Nigeria'),
array('id' => '8','name' => 'First City Monument Bank'),
array('id' => '9','name' => 'Guaranty Trust Bank'),
array('id' => '10','name' => 'Heritage Bank Plc'),
array('id' => '11','name' => 'Keystone Bank Limited'),
array('id' => '12','name' => 'Providus Bank Plc'),
array('id' => '13','name' => 'Skye Bank'),
array('id' => '14','name' => 'Stanbic IBTC Bank Nigeria Limited'),
array('id' => '15','name' => 'Standard Chartered Bank'),
array('id' => '16','name' => 'Sterling Bank'),
array('id' => '17','name' => 'Suntrust Bank Nigeria Limited'),
array('id' => '18','name' => 'Union Bank of Nigeria'),
array('id' => '19','name' => 'United Bank for Africa'),
array('id' => '20','name' => 'Unity Bank Plc'),
array('id' => '21','name' => 'Wema Bank'),
array('id' => '22','name' => 'Zenith Bank')
array('id' => '1','name' => 'Access Bank','code'=>'044'),
array('id' => '2','name' => 'Citibank','code'=>'023'),
array('id' => '3','name' => 'Diamond Bank','code'=>'063'),
array('id' => '4','name' => 'Dynamic Standard Bank','code'=>''),
array('id' => '5','name' => 'Ecobank Nigeria','code'=>'050'),
array('id' => '6','name' => 'Fidelity Bank Nigeria','code'=>'070'),
array('id' => '7','name' => 'First Bank of Nigeria','code'=>'011'),
array('id' => '8','name' => 'First City Monument Bank','code'=>'214'),
array('id' => '9','name' => 'Guaranty Trust Bank','code'=>'058'),
array('id' => '10','name' => 'Heritage Bank Plc','code'=>'030'),
array('id' => '11','name' => 'Jaiz Bank','code'=>'301'),
array('id' => '12','name' => 'Keystone Bank Limited','code'=>'082'),
array('id' => '13','name' => 'Providus Bank Plc','code'=>'101'),
array('id' => '14','name' => 'Skye Bank','code'=>'076'),
array('id' => '15','name' => 'Stanbic IBTC Bank Nigeria Limited','code'=>'221'),
array('id' => '16','name' => 'Standard Chartered Bank','code'=>'068'),
array('id' => '17','name' => 'Sterling Bank','code'=>'232'),
array('id' => '18','name' => 'Suntrust Bank Nigeria Limited','code'=>'100'),
array('id' => '19','name' => 'Union Bank of Nigeria','code'=>'032'),
array('id' => '20','name' => 'United Bank for Africa','code'=>'033'),
array('id' => '21','name' => 'Unity Bank Plc','code'=>'215'),
array('id' => '22','name' => 'Wema Bank','code'=>'035'),
array('id' => '23','name' => 'Zenith Bank','code'=>'057')
);
50 changes: 26 additions & 24 deletions banks.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,38 @@

CREATE TABLE `banks` (
`id` int(11) NOT NULL,
`name` varchar(100) NOT NULL
`name` varchar(100) NOT NULL,
`code` varchar(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `banks`
--

INSERT INTO `banks` (`id`, `name`) VALUES
(1, 'Access Bank'),
(2, 'Citibank'),
(3, 'Diamond Bank'),
(4, 'Dynamic Standard Bank'),
(5, 'Ecobank Nigeria'),
(6, 'Fidelity Bank Nigeria'),
(7, 'First Bank of Nigeria'),
(8, 'First City Monument Bank'),
(9, 'Guaranty Trust Bank'),
(10, 'Heritage Bank Plc'),
(11, 'Keystone Bank Limited'),
(12, 'Providus Bank Plc'),
(13, 'Skye Bank'),
(14, 'Stanbic IBTC Bank Nigeria Limited'),
(15, 'Standard Chartered Bank'),
(16, 'Sterling Bank'),
(17, 'Suntrust Bank Nigeria Limited'),
(18, 'Union Bank of Nigeria'),
(19, 'United Bank for Africa'),
(20, 'Unity Bank Plc'),
(21, 'Wema Bank'),
(22, 'Zenith Bank');
INSERT INTO `banks` (`id`, `name`,`code`) VALUES
(1, 'Access Bank','044'),
(2, 'Citibank','023'),
(3, 'Diamond Bank','063'),
(4, 'Dynamic Standard Bank',' '),
(5, 'Ecobank Nigeria','050'),
(6, 'Fidelity Bank Nigeria','070'),
(7, 'First Bank of Nigeria','011'),
(8, 'First City Monument Bank','214'),
(9, 'Guaranty Trust Bank','058'),
(10, 'Heritage Bank Plc','030'),
(11, 'Jaiz Bank','301'),
(12, 'Keystone Bank Limited','082'),
(13, 'Providus Bank Plc','101'),
(14, 'Skye Bank','076'),
(15, 'Stanbic IBTC Bank Nigeria Limited','221'),
(16, 'Standard Chartered Bank','068'),
(17, 'Sterling Bank','232'),
(18, 'Suntrust Bank Nigeria Limited','100'),
(19, 'Union Bank of Nigeria','032'),
(20, 'United Bank for Africa','033'),
(21, 'Unity Bank Plc','215'),
(22, 'Wema Bank','035'),
(23, 'Zenith Bank','057');

--
-- Indexes for dumped tables
Expand Down

0 comments on commit 9964a9a

Please sign in to comment.