GitHub
Tests: 12 • Commercial: 2 • Pet projects: 4 • Legacy: 4
Total: 22

.NET Framework

Test
2021

Project Request

ASP.NET MVC • C# • SQL Server
Idea of the project: if someone wants to order a project development, here you can send an application.
Test
2020

ProjectC

ASP.NET MVC • C# • JSON • jQuery
JSON data processing.
Test
2020

Vehicle Maintenance

ASP.NET MVC • VB.NET • JSON
Idea of the project: if someone wants to order a project development, here you can send an application.
Test
2019

Movie Navigator

ASP.NET MVC • VB.NET
Request information about movie from IMDB.
Test
2018

Customers Exchange

ASP.NET MVC • C# • SQL Server
Automated teller machine emulation.
Test
2016

ATM

ASP.NET MVC • C#
Automated teller machine emulation.

.NET Core

Pet project
2022

Mail Daemon

.NET 9 • Console • JSON
Utility to send mails with customizable settings.

Custom

Code
2024

Buns of code

.NET Framework • C# • JavaScript
Code snippets from my projects, ready to use; tiny tests; code examples.

PHP

Test
2024

Mediabox

PHP 8 • Laravel 11 • Vue.js • Composer • SQLite
Test project for media files management.
Test
2020

Loan Castle

PHP • MariaDB
Jums jāizstrādā kāda lielāk projekta prototips. Izstrādājot prototipu, paturiet prātā, ka projektam attīstoties, šo prototipu varētu vajadzēt pilnveidot.
Test
2020

Content Management

PHP • MySQL • AJAX
Создать простой сайт, где будет страница с формой для авторизации и страница для авторизованного пользователя.
Test
2019

Laravel

PHP • Laravel • Vue.js • Composer • SQLite
Izveidot aplikāciju, kura ik pēc noteikta intervāla (60 sekundes) veic ierakstu datubāzē izmantojot Laravel freimworka iebūvēto funkcionalitāti.
Test
2019

Phone Check

PHP • JavaScript • JSON • Docker
Implement application to detect country by phone number.

Frontend

Test
2021

Forex Wall

npm • React
For this exercise, what we need is a simple live wall for tracking currencies.

Business projects

Commercial
2008

Certification Center

.NET Framework 4.8 • ASP.NET Web Forms • C# • LINQ • SQL Server • ADO.NET • Dapper • JavaScript • jQuery • Git
Transport registration and certification services in Latvia, Customer Relationship Management.
Commercial
2000

Amerikas Auto

.NET Framework 4.8 • ASP.NET Web Forms • C# • LINQ • SQL Server • ADO.NET • Entity Framework • JavaScript • jQuery • Git
Car service and spare parts for all USA and European car models, Customer Relationship Management.

Pet projects

Pet project
2023

Geolocation Assistant

.NET 8 • ASP.NET Core • C# • Web API • JSON • Git
Website for determining geolocation by IP or geotagged photo.
Pet project
2008

Web Dynamics

.NET Framework 4.8 • ASP.NET Web Forms • C# • LINQ • Web API • JSON • SQL Server • Dapper • JavaScript • jQuery • SVG • Git
Software development blog. Articles, books, videos, content management.
Pet project
2000

Blackball

.NET Framework 4.8 • ASP.NET Web Forms • C# • LINQ • Web API • JSON • XML • SQL Server • Dapper • JavaScript • jQuery • SVG • Git
My entertainment portal created from scratch.

Good old times

Legacy
2000

DOS Clock

Turbo Pascal • Assembler
Digital clock.
Legacy
2000

BrainOut

Turbo Pascal • Assembler
Tank battle game.
Legacy
1999

Airport Administrator

Turbo Pascal
Курсовая работа в институте.
Legacy
1998

Atomizer

Turbo Pascal • Assembler
Atomizer, aka «Studio2D». Graphic raster editor. AGI is my own «Atomizer Generated Image» file format.

Laravel

2019 Test

Izveidot aplikāciju, kura ik pēc noteikta intervāla (60 sekundes) veic ierakstu datubāzē izmantojot Laravel freimworka iebūvēto funkcionalitāti.

PHP Laravel Vue.js Composer SQLite
Information
Source code
  app
  Http
  Auth
  css
  js
  js
  lang
  en
  sass
  app
  data
  logs
  Unit
  src
  src
  lib
  docs
  en
  src
  docs
  en
  lib
  src
  Cron
  Cron
  src
  filp
  src
  css
  js
  Util
  src
  ORM
  Spot
  test
  Core
  Text
  Type
  Xml
  Core
  Text
  Type
  Xml
  html
  src
  src
  src
  Auth
  make
  auth
  Bus
  Auth
  Bus
  Http
  Mail
  View
  Auth
  Bus
  Http
  Http
  Json
  Log
  Mail
  html
  text
  Jobs
  View
  src
  src
  Util
  docs
  Pass
  Pass
  Pass
  doc
  src
  Curl
  doc
  f001
  f002
  f003
  f004
  f005
  f006
  f007
  f008
  src
  Date
  Spl
  src
  Lang
  List
  doc
  lib
  Node
  Expr
  Cast
  Name
  Stmt
  test
  code
  expr
  uvs
  stmt
  loop
  expr
  stmt
  Node
  Stmt
  src
  opis
  src
  dist
  lib
  src
  xml
  xml
  src
  Unit
  src
  src
  Tags
  src
  src
  src
  Call
  Node
  Call
  Util
  src
  Node
  Html
  css
  js
  Xml
  HTML
  XML
  src
  src
  src
  src
  src
  Stub
  Hook
  Util
  Log
  PHP
  cli
  1149
  1216
  1265
  1330
  1335
  1337
  1348
  1351
  1374
  1437
  1468
  1471
  1472
  1570
  2085
  2137
  2145
  2158
  2366
  2380
  2382
  2435
  244
  2448
  2724
  2725
  2731
  2811
  2830
  2972
  3093
  3107
  3156
  322
  3364
  3379
  3380
  3396
  433
  445
  498
  503
  581
  74
  765
  797
  873
  Trac
  1021
  523
  578
  684
  783
  fail
  unit
  Util
  PHP
  psr
  src
  log
  Psr
  Log
  Test
  src
  psy
  src
  Sudo
  Util
  test
  Sudo
  Util
  box
  uuid
  src
  Time
  Node
  Time
  src
  src
  diff
  src
  out
  src
  src
  src
  src
  src
  src
  src
  src
  doc
  lib
  Mime
  Pop
  Auth
  Mime
  bug
  unit
  Mime
  Auth
  dkim
  Node
  Node
  psr4
  phpt
  .dot
  b
  a
  A
  B
  C
  copy
  A
  B
  C
  one
  b
  .dot
  a
  dir
  File
  Test
  File
  test
  Test
  Log
  Log
  mime
  Part
  test
  Part
  glob
  Test
  data
  dat
  res
  Util
  Util
  Test
  css
  js
  Test
  Test
  src
  src
  Css
  Rule
  src
  src
  .env
  null
Root / vendor / fzaninotto / faker / src / Faker / Provider / ms_MY / Address.php
<?php namespace Faker\Provider\ms_MY; use \Faker\Generator; class Address extends \Faker\Provider\Address { /** * @link https://en.wikipedia.org/wiki/Addresses_in_Malaysia */ protected static $addressFormats = array( '{{streetAddress}}, {{township}}, {{townState}}', ); protected static $streetAddressFormats = array( '{{buildingPrefix}}{{buildingNumber}}, {{streetName}}' ); /** * Most of the time 'No.' is not needed, and 'Lot' is less used. */ protected static $buildingPrefix = array( '','','','','','', 'No. ','No. ','No. ', 'Lot ', ); protected static $buildingNumber = array( '%','%','%', '%#','%#','%#','%#', '%##', '%-%', '?-##-##', '%?-##' ); protected static $streetNameFormats = array( '{{streetPrefix}} %', '{{streetPrefix}} %/%', '{{streetPrefix}} %/%#', '{{streetPrefix}} %/%?', '{{streetPrefix}} %/%#?', '{{streetPrefix}} %?', '{{streetPrefix}} %#?', '{{streetPrefix}} {{streetSuffix}}', '{{streetPrefix}} {{streetSuffix}} %', '{{streetPrefix}} {{streetSuffix}} %/%', '{{streetPrefix}} {{streetSuffix}} %/%#', '{{streetPrefix}} {{streetSuffix}} %/%?', '{{streetPrefix}} {{streetSuffix}} %/%#?', '{{streetPrefix}} {{streetSuffix}} %?', '{{streetPrefix}} {{streetSuffix}} %#?', ); protected static $townshipFormats = array( '{{townshipPrefix}} {{townshipSuffix}}', '{{townshipPrefix}} {{townshipSuffix}}', '{{townshipPrefix}} {{townshipSuffix}}', '{{townshipPrefix}} {{townshipSuffix}}', '{{townshipPrefix}} {{townshipSuffix}}', '{{townshipPrefix}} {{townshipSuffix}}', '{{townshipPrefixAbbr}}%', '{{townshipPrefixAbbr}}%#', '{{townshipPrefixAbbr}}%#?', ); /** * 'Jalan' & 'Jln' are more frequently used than 'Lorong' * * @link https://en.wikipedia.org/wiki/List_of_roads_in_Kuala_Lumpur#Standard_translations */ protected static $streetPrefix = array( 'Jln','Jln', 'Jalan','Jalan','Jalan', 'Lorong' ); /** * @link https://en.wikipedia.org/wiki/List_of_roads_in_Kuala_Lumpur * @link https://en.wikipedia.org/wiki/List_of_roads_in_Ipoh * @link https://en.wikipedia.org/wiki/Transportation_in_Seremban#Inner_city_roads * @link https://en.wikipedia.org/wiki/List_of_streets_in_George_Town,_Penang */ protected static $streetSuffix = array( 'Air Itam','Alor','Ampang','Ampang Hilir','Anson','Ariffin', 'Bangsar','Baru','Bellamy','Birch','Bijih Timah','Bukit Aman','Bukit Bintang','Bukit Petaling','Bukit Tunku', 'Cantonment','Cenderawasih','Chan Sow Lin','Chow Kit','Cinta','Cochrane','Conlay', 'D. S. Ramanathan','Damansara','Dang Wangi','Davis','Dewan Bahasa','Dato Abdul Rahman','Dato\'Keramat','Dato\' Maharaja Lela','Doraisamy', 'Eaton', 'Faraday', 'Galloway','Genting Klang','Gereja', 'Hang Jebat','Hang Kasturi','Hang Lekir','Hang Lekiu','Hang Tuah','Hospital', 'Imbi','Istana', 'Jelutong', 'Kampung Attap','Kebun Bunga','Kedah','Keliling','Kia Peng','Kinabalu','Kuala Kangsar','Kuching', 'Ledang','Lembah Permai','Loke Yew','Lt. Adnan','Lumba Kuda', 'Madras','Magazine','Maharajalela','Masjid','Maxwell','Mohana Chandran','Muda', 'P. Ramlee','Padang Kota Lama','Pahang','Pantai Baharu','Parlimen','Pasar','Pasar Besar','Perak','Perdana','Petaling','Prangin','Pudu','Pudu Lama', 'Raja','Raja Abdullah','Raja Chulan','Raja Laut','Rakyat','Residensi','Robson', 'S.P. Seenivasagam','Samarahan 1','Selamat','Sempadan','Sentul','Serian 1','Sasaran','Sin Chee','Sultan Abdul Samad','Sultan Azlan Shah','Sultan Iskandar','Sultan Ismail','Sultan Sulaiman','Sungai Besi','Syed Putra', 'Tan Cheng Lock','Thambipillay','Tugu','Tuanku Abdul Halim','Tuanku Abdul Rahman','Tun Abdul Razak','Tun Dr Ismail','Tun H S Lee','Tun Ismail','Tun Perak','Tun Razak','Tun Sambanthan', 'U-Thant','Utama', 'Vermont','Vivekananda', 'Wan Kadir','Wesley','Wisma Putra', 'Yaacob Latif','Yap Ah Loy','Yap Ah Shak','Yap Kwan Seng','Yew', 'Zaaba','Zainal Abidin' ); /** * @link https://en.wikipedia.org/wiki/List_of_Petaling_Jaya_city_sections * @link https://en.wikipedia.org/wiki/UEP_Subang_Jaya#History */ protected static $townshipPrefixAbbr = array( 'SS','Seksyen ','PJS','PJU','USJ ', ); /** * 'Bandar' and 'Taman' are the most common township prefix * * @link https://en.wikipedia.org/wiki/Template:Greater_Kuala_Lumpur > Townships * @link https://en.wikipedia.org/wiki/Template:Johor > Townships * @link https://en.wikipedia.org/wiki/Template:Kedah > Townships * @link https://en.wikipedia.org/wiki/Template:Kelantan > Townships * @link https://en.wikipedia.org/wiki/Template:Melaka > Townships * @link https://en.wikipedia.org/wiki/Template:Negeri_Sembilan > Townships * @link https://en.wikipedia.org/wiki/Template:Perak > Townships * @link https://en.wikipedia.org/wiki/Template:Penang > Townships * @link https://en.wikipedia.org/wiki/Template:Selangor > Townships * @link https://en.wikipedia.org/wiki/Template:Terengganu > Townships */ protected static $townshipPrefix = array( 'Alam','Apartment','Ara', 'Bandar','Bandar','Bandar','Bandar','Bandar','Bandar', 'Bandar Bukit','Bandar Seri','Bandar Sri','Bandar Baru','Batu','Bukit', 'Desa','Damansara', 'Kampung','Kampung Baru','Kampung Baru','Kondominium','Kota', 'Laman','Lembah', 'Medan', 'Pandan','Pangsapuri','Petaling','Puncak', 'Seri','Sri', 'Taman','Taman','Taman','Taman','Taman','Taman', 'Taman Desa', ); protected static $townshipSuffix = array( 'Aman','Amanjaya','Anggerik','Angkasa','Antarabangsa','Awan', 'Bahagia','Bangsar','Baru','Belakong','Bendahara','Bestari','Bintang','Brickfields', 'Casa','Changkat','Country Heights', 'Damansara','Damai','Dato Harun','Delima','Duta', 'Flora', 'Gembira','Genting', 'Harmoni','Hartamas', 'Impian','Indah','Intan', 'Jasa','Jaya', 'Keramat','Kerinchi','Kiara','Kinrara','Kuchai', 'Laksamana', 'Mahkota','Maluri','Manggis','Maxwell','Medan','Melawati','Menjalara','Meru','Mulia','Mutiara', 'Pahlawan','Perdana','Pertama','Permai','Pelangi','Petaling','Pinang','Puchong','Puteri','Putra', 'Rahman','Rahmat','Raya','Razak','Ria', 'Saujana','Segambut','Selamat','Selatan','Semarak','Sentosa','Seputeh','Setapak','Setia Jaya','Sinar','Sungai Besi','Sungai Buaya','Sungai Long','Suria', 'Tasik Puteri','Tengah','Timur','Tinggi','Tropika','Tun Hussein Onn','Tun Perak','Tunku', 'Ulu','Utama','Utara', 'Wangi', ); /** * @link https://en.wikipedia.org/wiki/Template:Greater_Kuala_Lumpur * @link https://en.wikipedia.org/wiki/Template:Johor * @link https://en.wikipedia.org/wiki/Template:Kedah * @link https://en.wikipedia.org/wiki/Template:Kelantan * @link https://en.wikipedia.org/wiki/Template:Labuan * @link https://en.wikipedia.org/wiki/Template:Melaka * @link https://en.wikipedia.org/wiki/Template:Negeri_Sembilan * @link https://en.wikipedia.org/wiki/Template:Pahang * @link https://en.wikipedia.org/wiki/Template:Perak * @link https://en.wikipedia.org/wiki/Template:Perlis * @link https://en.wikipedia.org/wiki/Template:Penang * @link https://en.wikipedia.org/wiki/Template:Sabah * @link https://en.wikipedia.org/wiki/Template:Sarawak * @link https://en.wikipedia.org/wiki/Template:Selangor * @link https://en.wikipedia.org/wiki/Template:Terengganu */ protected static $towns = array( 'johor' => array( 'Ayer Hitam', 'Batu Pahat','Bukit Gambir','Bukit Kepong','Bukit Naning', 'Desaru', 'Endau', 'Gelang Patah','Gemas Baharu', 'Iskandar Puteri', 'Jementah','Johor Lama','Johor Bahru', 'Kempas','Kluang','Kota Iskandar','Kota Tinggi','Kukup','Kulai', 'Labis ','Larkin','Layang-Layang', 'Mersing','Muar', 'Pagoh','Paloh','Parit Jawa','Pasir Gudang','Pekan Nanas','Permas Jaya','Pontian Kechil', 'Renggam', 'Segamat','Senai','Simpang Renggam','Skudai','Sri Gading', 'Tangkak','Tebrau', 'Ulu Tiram', 'Yong Peng', ), 'kedah' => array( 'Alor Setar', 'Baling','Bukit Kayu Hitam', 'Changlun', 'Durian Burung', 'Gurun', 'Jitra', 'Kepala Batas','Kuah','Kuala Kedah','Kuala Ketil','Kulim', 'Langgar','Lunas', 'Merbok', 'Padang Serai','Pendang', 'Serdang','Sintok','Sungai Petani', 'Tawar, Baling', 'Yan', ), 'kelantan' => array( 'Bachok','Bunut Payong', 'Dabong', 'Gua Musang', 'Jeli', 'Ketereh','Kota Bharu','Kuala Krai', 'Lojing', 'Machang', 'Pasir Mas','Pasir Puteh', 'Rantau Panjang', 'Salor', 'Tok Bali', 'Wakaf Bharu','Wakaf Che Yeh', ), 'kl' => array( 'Ampang', 'Bandar Tasik Selatan','Bandar Tun Razak','Bangsar','Batu','Brickfields','Bukit Bintang','Bukit Jalil','Bukit Tunku', 'Cheras','Chow Kit', 'Damansara Town Centre','Dang Wangi','Desa Petaling','Desa Tun Hussein Onn', 'Jinjang', 'Kampung Baru','Kampung Kasipillay','Kampung Pandan','Kampung Sungai Penchala','Kepong','KLCC','Kuchai Lama', 'Lake Gardens','Lembah Pantai', 'Medan Tuanku','Mid Valley City','Mont Kiara', 'Pantai Dalam','Pudu', 'Salak South','Segambut','Semarak','Sentul','Setapak','Setiawangsa','Seputeh','Sri Hartamas','Sri Petaling','Sungai Besi', 'Taman Desa','Taman Melawati','Taman OUG','Taman Tun Dr Ismail','Taman U-Thant','Taman Wahyu','Titiwangsa','Tun Razak Exchange', 'Wangsa Maju', ), 'labuan' => array( 'Batu Manikar', 'Kiamsam', 'Layang-Layang', 'Rancha-Rancha' ), 'melaka' => array( 'Alor Gajah', 'Bandaraya Melaka','Batu Berendam','Bukit Beruang','Bukit Katil', 'Cheng', 'Durian Tunggal', 'Hang Tuah Jaya', 'Jasin', 'Klebang', 'Lubuk China', 'Masjid Tanah', 'Naning', 'Pekan Asahan', 'Ramuan China', 'Simpang Ampat', 'Tanjung Bidara','Telok Mas', 'Umbai', ), 'nsembilan' => array( 'Ayer Kuning','Ampangan', 'Bahau','Batang Benar', 'Chembong', 'Dangi', 'Gemas', 'Juasseh', 'Kuala Pilah', 'Labu','Lenggeng','Linggi', 'Mantin', 'Nilai', 'Pajam','Pedas','Pengkalan Kempas','Port Dickson', 'Rantau','Rompin', 'Senawang','Seremban','Sungai Gadut', 'Tampin','Tiroi', ), 'pahang' => array( 'Bandar Tun Razak','Bentong','Brinchang','Bukit Fraser','Bukit Tinggi', 'Chendor', 'Gambang','Genting Highlands','Genting Sempah', 'Jerantut', 'Karak','Kemayan','Kota Shahbandar','Kuala Lipis','Kuala Pahang','Kuala Rompin','Kuantan', 'Lanchang','Lubuk Paku', 'Maran','Mengkuang','Mentakab', 'Nenasi', 'Panching', 'Pekan','Penor', 'Raub', 'Sebertak','Sungai Lembing', 'Tanah Rata','Tanjung Sepat','Tasik Chini','Temerloh','Teriang','Tringkap', ), 'penang' => array( 'Air Itam', 'Balik Pulau','Batu Ferringhi','Batu Kawan','Bayan Lepas','Bukit Mertajam','Butterworth', 'Gelugor','George Town', 'Jelutong', 'Kepala Batas', 'Nibong Tebal', 'Permatang Pauh','Pulau Tikus', 'Simpang Ampat', 'Tanjung Bungah','Tanjung Tokong', ), 'perak' => array( 'Ayer Tawar', 'Bagan Serai','Batu Gajah','Behrang','Bidor','Bukit Gantang','Bukit Merah', 'Changkat Jering','Chemor','Chenderiang', 'Damar Laut', 'Gerik','Gopeng','Gua Tempurung', 'Hutan Melintang', 'Ipoh', 'Jelapang', 'Kamunting','Kampar','Kuala Kangsar', 'Lekir','Lenggong','Lumut', 'Malim Nawar','Manong','Menglembu', 'Pantai Remis','Parit','Parit Buntar','Pasir Salak','Proton City', 'Simpang Pulai','Sitiawan','Slim River','Sungai Siput','Sungkai', 'Taiping','Tambun','Tanjung Malim','Tanjung Rambutan','Tapah','Teluk Intan', 'Ulu Bernam', ), 'perlis' => array( 'Arau', 'Beseri', 'Chuping', 'Kaki Bukit','Kangar','Kuala Perlis', 'Mata Ayer', 'Padang Besar', 'Sanglang','Simpang Empat', 'Wang Kelian', ), 'putrajaya' => array( 'Precinct 1','Precinct 4','Precinct 5', 'Precinct 6','Precinct 8','Precinct 10', 'Precinct 11','Precinct 12','Precinct 13', 'Precinct 16','Precinct 18','Precinct 19', ), 'sabah' => array( 'Beaufort','Bingkor', 'Donggongon', 'Inanam', 'Kinabatangan','Kota Belud','Kota Kinabalu','Kuala Penyu','Kimanis','Kundasang', 'Lahad Datu','Likas','Lok Kawi', 'Manggatal', 'Nabawan', 'Papar','Pitas', 'Ranau', 'Sandakan','Sapulut','Semporna','Sepanggar', 'Tambunan','Tanjung Aru','Tawau','Tenom','Tuaran', 'Weston', ), 'sarawak' => array( 'Asajaya', 'Ba\'kelalan','Bario','Batu Kawa','Batu Niah','Betong','Bintulu', 'Dalat','Daro', 'Engkilili', 'Julau', 'Kapit','Kota Samarahan','Kuching', 'Lawas','Limbang','Lubok Antu', 'Marudi','Matu','Miri', 'Oya', 'Pakan', 'Sadong Jaya','Sematan','Sibu','Siburan','Song','Sri Aman','Sungai Tujoh', 'Tanjung Kidurong','Tanjung Manis','Tatau', ), 'selangor' => array( 'Ampang','Assam Jawa', 'Balakong','Bandar Baru Bangi','Bandar Baru Selayang','Bandar Sunway','Bangi','Banting','Batang Kali','Batu Caves','Bestari Jaya','Bukit Lanjan', 'Cheras','Cyberjaya', 'Damansara','Dengkil', 'Ijok', 'Jenjarom', 'Kajang','Kelana Jaya','Klang','Kuala Kubu Bharu','Kuala Selangor','Kuang', 'Lagong', 'Morib', 'Pandamaran','Paya Jaras','Petaling Jaya','Port Klang','Puchong', 'Rasa','Rawang', 'Salak Tinggi','Sekinchan','Selayang','Semenyih','Sepang','Serendah','Seri Kembangan','Shah Alam','Subang','Subang Jaya','Sungai Buloh', 'Tanjung Karang','Tanjung Sepat', 'Ulu Klang','Ulu Yam', ), 'terengganu' => array( 'Ajil', 'Bandar Ketengah Jaya','Bandar Permaisuri','Bukit Besi','Bukit Payong', 'Chukai', 'Jerteh', 'Kampung Raja','Kerteh','Kijal','Kuala Besut','Kuala Berang','Kuala Dungun','Kuala Terengganu', 'Marang','Merchang', 'Pasir Raja', 'Rantau Abang', 'Teluk Kalung', 'Wakaf Tapai', ) ); /** * @link https://en.wikipedia.org/wiki/States_and_federal_territories_of_Malaysia */ protected static $states = array( 'johor' => array( 'Johor Darul Ta\'zim', 'Johor' ), 'kedah' => array( 'Kedah Darul Aman', 'Kedah' ), 'kelantan' => array( 'Kelantan Darul Naim', 'Kelantan' ), 'kl' => array( 'KL', 'Kuala Lumpur', 'WP Kuala Lumpur' ), 'labuan' => array( 'Labuan' ), 'melaka' => array( 'Malacca', 'Melaka' ), 'nsembilan' => array( 'Negeri Sembilan Darul Khusus', 'Negeri Sembilan' ), 'pahang' => array( 'Pahang Darul Makmur', 'Pahang' ), 'penang' => array( 'Penang', 'Pulau Pinang' ), 'perak' => array( 'Perak Darul Ridzuan', 'Perak' ), 'perlis' => array( 'Perlis Indera Kayangan', 'Perlis' ), 'putrajaya' => array( 'Putrajaya' ), 'sabah' => array( 'Sabah' ), 'sarawak' => array( 'Sarawak' ), 'selangor' => array( 'Selangor Darul Ehsan', 'Selangor' ), 'terengganu' => array( 'Terengganu Darul Iman', 'Terengganu' ) ); /** * @link https://ms.wikipedia.org/wiki/Senarai_negara_berdaulat */ protected static $country = array( 'Abkhazia','Afghanistan','Afrika Selatan','Republik Afrika Tengah','Akrotiri dan Dhekelia','Albania','Algeria','Amerika Syarikat','Andorra','Angola','Antigua dan Barbuda','Arab Saudi','Argentina','Armenia','Australia','Austria','Azerbaijan', 'Bahamas','Bahrain','Bangladesh','Barbados','Belanda','Belarus','Belgium','Belize','Benin','Bhutan','Bolivia','Bonaire','Bosnia dan Herzegovina','Botswana','Brazil','Brunei Darussalam','Bulgaria','Burkina Faso','Burundi', 'Cameroon','Chad','Chile','Republik Rakyat China','Republik China di Taiwan','Colombia','Comoros','Republik Demokratik Congo','Republik Congo','Kepulauan Cook','Costa Rica','Côte d\'Ivoire (Ivory Coast)','Croatia','Cuba','Curaçao','Cyprus','Republik Turki Cyprus Utara','Republik Czech', 'Denmark','Djibouti','Dominika','Republik Dominika', 'Ecuador','El Salvador','Emiriah Arab Bersatu','Eritrea','Estonia', 'Kepulauan Faroe','Fiji','Filipina','Finland', 'Gabon','Gambia','Georgia','Ghana','Grenada','Greece (Yunani)','Guatemala','Guinea','Guinea-Bissau','Guinea Khatulistiwa','Guiana Perancis','Guyana', 'Habsyah (Etiopia)','Haiti','Honduras','Hungary', 'Iceland','India','Indonesia','Iran','Iraq','Ireland','Israel','Itali', 'Jamaika','Jepun','Jerman','Jordan', 'Kanada','Kazakhstan','Kemboja','Kenya','Kiribati','Korea Selatan','Korea Utara','Kosovo','Kuwait','Kyrgyzstan', 'Laos','Latvia','Lesotho','Liberia','Libya','Liechtenstein','Lithuania','Lubnan','Luxembourg', 'Macedonia','Madagaskar','Maghribi','Malawi','Malaysia','Maldives','Mali','Malta','Kepulauan Marshall','Mauritania','Mauritius','Mesir','Mexico','Persekutuan Micronesia','Moldova','Monaco','Montenegro','Mongolia','Mozambique','Myanmar', 'Namibia','Nauru','Nepal','New Zealand','Nicaragua','Niger','Nigeria','Niue','Norway', 'Oman','Ossetia Selatan', 'Pakistan','Palau','Palestin','Panama','Papua New Guinea','Paraguay','Perancis','Peru','Poland','Portugal', 'Qatar', 'Romania','Russia','Rwanda', 'Sahara Barat','Saint Kitts dan Nevis','Saint Lucia','Saint Vincent dan Grenadines','Samoa','San Marino','São Tomé dan Príncipe','Scotland','Senegal','Sepanyol','Serbia','Seychelles','Sierra Leone','Singapura','Slovakia','Slovenia','Kepulauan Solomon','Somalia','Somaliland','Sri Lanka','Sudan','Sudan Selatan','Suriname','Swaziland','Sweden','Switzerland','Syria', 'Tajikistan','Tanjung Verde','Tanzania','Thailand','Timor Leste','Togo','Tonga','Transnistria','Trinidad dan Tobago','Tunisia','Turki','Turkmenistan','Tuvalu', 'Uganda','Ukraine','United Kingdom','Uruguay','Uzbekistan', 'Vanuatu','Kota Vatican','Venezuela','Vietnam', 'Yaman', 'Zambia','Zimbabwe', ); /** * Return a building prefix * * @example 'No.' * * @return @string */ public static function buildingPrefix() { return static::randomElement(static::$buildingPrefix); } /** * Return a building number * * @example '123' * * @return @string */ public static function buildingNumber() { return static::toUpper(static::lexify(static::numerify(static::randomElement(static::$buildingNumber)))); } /** * Return a street prefix * * @example 'Jalan' */ public function streetPrefix() { $format = static::randomElement(static::$streetPrefix); return $this->generator->parse($format); } /** * Return a complete streename * * @example 'Jalan Utama 7' * * @return @string */ public function streetName() { $format = static::toUpper(static::lexify(static::numerify(static::randomElement(static::$streetNameFormats)))); return $this->generator->parse($format); } /** * Return a randown township * * @example Taman Bahagia * * @return @string */ public function township() { $format = static::toUpper(static::lexify(static::numerify(static::randomElement(static::$townshipFormats)))); return $this->generator->parse($format); } /** * Return a township prefix abbreviation * * @example 'USJ' * * @return @string */ public function townshipPrefixAbbr() { return static::randomElement(static::$townshipPrefixAbbr); } /** * Return a township prefix * * @example 'Taman' * * @return @string */ public function townshipPrefix() { return static::randomElement(static::$townshipPrefix); } /** * Return a township suffix * * @example 'Bahagia' */ public function townshipSuffix() { return static::randomElement(static::$townshipSuffix); } /** * Return a postcode based on state * * @example '55100' * @link https://en.wikipedia.org/wiki/Postal_codes_in_Malaysia#States * * @param null|string $state 'state' or null * * @return @string */ public static function postcode($state = null) { $format = array( 'perlis' => array( // (01000 - 02800) '0' . mt_rand(1000, 2800) ), 'kedah' => array( // (05000 - 09810) '0' . mt_rand(5000, 9810) ), 'penang' => array( // (10000 - 14400) mt_rand(10000, 14400) ), 'kelantan' => array( // (15000 - 18500) mt_rand(15000, 18500) ), 'terengganu' => array( // (20000 - 24300) mt_rand(20000, 24300) ), 'pahang' => array( // (25000 - 28800 | 39000 - 39200 | 49000, 69000) mt_rand(25000, 28800), mt_rand(39000, 39200), mt_rand(49000, 69000) ), 'perak' => array( // (30000 - 36810) mt_rand(30000, 36810) ), 'selangor' => array( // (40000 - 48300 | 63000 - 68100) mt_rand(40000, 48300), mt_rand(63000, 68100) ), 'kl' => array( // (50000 - 60000) mt_rand(50000, 60000), ), 'putrajaya' => array( // (62000 - 62988) mt_rand(62000, 62988) ), 'nsembilan' => array( // (70000 - 73509) mt_rand(70000, 73509) ), 'melaka' => array( // (75000 - 78309) mt_rand(75000, 78309) ), 'johor' => array( // (79000 - 86900) mt_rand(79000, 86900) ), 'labuan' => array( // (87000 - 87033) mt_rand(87000, 87033) ), 'sabah' => array( // (88000 - 91309) mt_rand(88000, 91309) ), 'sarawak' => array( // (93000 - 98859) mt_rand(93000, 98859) ) ); $postcode = is_null($state) ? static::randomElement($format) : $format[$state]; return (string)static::randomElement($postcode); } /** * Return the complete town address with matching postcode and state * * @example 55100 Bukit Bintang, Kuala Lumpur * * @return @string */ public function townState() { $state = static::randomElement(array_keys(static::$states)); $postcode = static::postcode($state); $town = static::randomElement(static::$towns[$state]); $state = static::randomElement(static::$states[$state]); return $postcode . ' ' . $town . ', ' . $state; } /** * Return a random city (town) * * @example 'Ampang' * * @return @string */ public function city() { $state = static::randomElement(array_keys(static::$towns)); return static::randomElement(static::$towns[$state]); } /** * Return a random state * * @example 'Johor' * * @return @string */ public function state() { $state = static::randomElement(array_keys(static::$states)); return static::randomElement(static::$states[$state]); } }