mirror of
https://github.com/Respect/Validation.git
synced 2024-06-28 18:20:07 +02:00
52614d600d
The current documentation is hosted via GitHub pages rendered by "Couscous". Every time we need a new version of the documentation published we need to manually execute the "couscous". This commit reorganize the documentation to be published to "Read the Docs" because it will also allow us to have documentations per version of the library most importantly provider a search field for the documentation. The documentation will be then published on: https://respect-validation.readthedocs.io/ Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
5.5 KiB
5.5 KiB
SubdivisionCode
v::subdivisionCode(string $countryCode)
Validates subdivision country codes according to ISO 3166-2.
The $countryCode
must be a country in ISO 3166-1 alpha-2 format.
v::subdivisionCode('BR')->validate('SP'); // true
v::subdivisionCode('US')->validate('CA'); // true
This rule is case sensitive.
Available country codes
AD
: AndorraAE
: United Arab EmiratesAF
: AfghanistanAG
: Antigua and BarbudaAI
: AnguillaAL
: AlbaniaAM
: ArmeniaAN
: AN.htmlAO
: AngolaAQ
: AntarcticaAR
: ArgentinaAS
: American SamoaAT
: AustriaAU
: AustraliaAW
: ArubaAX
: ÅlandAZ
: AzerbaijanBA
: Bosnia and HerzegovinaBB
: BarbadosBD
: BangladeshBE
: BelgiumBF
: Burkina FasoBG
: BulgariaBH
: BahrainBI
: BurundiBJ
: BeninBL
: Saint BarthélemyBM
: BermudaBN
: BruneiBO
: BoliviaBQ
: BonaireBR
: BrazilBS
: BahamasBT
: BhutanBV
: Bouvet IslandBW
: BotswanaBY
: BelarusBZ
: BelizeCA
: CanadaCC
: Cocos [Keeling] IslandsCD
: Democratic Republic of the CongoCF
: Central African RepublicCG
: Republic of the CongoCH
: SwitzerlandCI
: Ivory CoastCK
: Cook IslandsCL
: ChileCM
: CameroonCN
: ChinaCO
: ColombiaCR
: Costa RicaCS
: CS.htmlCU
: CubaCV
: Cape VerdeCW
: CuracaoCX
: Christmas IslandCY
: CyprusCZ
: Czech RepublicDE
: GermanyDJ
: DjiboutiDK
: DenmarkDM
: DominicaDO
: Dominican RepublicDZ
: AlgeriaEC
: EcuadorEE
: EstoniaEG
: EgyptEH
: Western SaharaER
: EritreaES
: SpainET
: EthiopiaFI
: FinlandFJ
: FijiFK
: Falkland IslandsFM
: MicronesiaFO
: Faroe IslandsFR
: FranceGA
: GabonGB
: United KingdomGD
: GrenadaGE
: GeorgiaGF
: French GuianaGG
: GuernseyGH
: GhanaGI
: GibraltarGL
: GreenlandGM
: GambiaGN
: GuineaGP
: GuadeloupeGQ
: Equatorial GuineaGR
: GreeceGS
: South Georgia and the South Sandwich IslandsGT
: GuatemalaGU
: GuamGW
: Guinea-BissauGY
: GuyanaHK
: Hong KongHM
: Heard Island and McDonald IslandsHN
: HondurasHR
: CroatiaHT
: HaitiHU
: HungaryID
: IndonesiaIE
: IrelandIL
: IsraelIM
: Isle of ManIN
: IndiaIO
: British Indian Ocean TerritoryIQ
: IraqIR
: IranIS
: IcelandIT
: ItalyJE
: JerseyJM
: JamaicaJO
: JordanJP
: JapanKE
: KenyaKG
: KyrgyzstanKH
: CambodiaKI
: KiribatiKM
: ComorosKN
: Saint Kitts and NevisKP
: North KoreaKR
: South KoreaKW
: KuwaitKY
: Cayman IslandsKZ
: KazakhstanLA
: LaosLB
: LebanonLC
: Saint LuciaLI
: LiechtensteinLK
: Sri LankaLR
: LiberiaLS
: LesothoLT
: LithuaniaLU
: LuxembourgLV
: LatviaLY
: LibyaMA
: MoroccoMC
: MonacoMD
: MoldovaME
: MontenegroMF
: Saint MartinMG
: MadagascarMH
: Marshall IslandsMK
: MacedoniaML
: MaliMM
: Myanmar [Burma]MN
: MongoliaMO
: MacaoMP
: Northern Mariana IslandsMQ
: MartiniqueMR
: MauritaniaMS
: MontserratMT
: MaltaMU
: MauritiusMV
: MaldivesMW
: MalawiMX
: MexicoMY
: MalaysiaMZ
: MozambiqueNA
: NamibiaNC
: New CaledoniaNE
: NigerNF
: Norfolk IslandNG
: NigeriaNI
: NicaraguaNL
: NetherlandsNO
: NorwayNP
: NepalNR
: NauruNU
: NiueNZ
: New ZealandOM
: OmanPA
: PanamaPE
: PeruPF
: French PolynesiaPG
: Papua New GuineaPH
: PhilippinesPK
: PakistanPL
: PolandPM
: Saint Pierre and MiquelonPN
: Pitcairn IslandsPR
: Puerto RicoPS
: PalestinePT
: PortugalPW
: PalauPY
: ParaguayQA
: QatarRE
: RéunionRO
: RomaniaRS
: SerbiaRU
: RussiaRW
: RwandaSA
: Saudi ArabiaSB
: Solomon IslandsSC
: SeychellesSD
: SudanSE
: SwedenSG
: SingaporeSH
: Saint HelenaSI
: SloveniaSJ
: Svalbard and Jan MayenSK
: SlovakiaSL
: Sierra LeoneSM
: San MarinoSN
: SenegalSO
: SomaliaSR
: SurinameSS
: South SudanST
: São Tomé and PríncipeSV
: El SalvadorSX
: Sint MaartenSY
: SyriaSZ
: SwazilandTC
: Turks and Caicos IslandsTD
: ChadTF
: French Southern TerritoriesTG
: TogoTH
: ThailandTJ
: TajikistanTK
: TokelauTL
: East TimorTM
: TurkmenistanTN
: TunisiaTO
: TongaTR
: TurkeyTT
: Trinidad and TobagoTV
: TuvaluTW
: TaiwanTZ
: TanzaniaUA
: UkraineUG
: UgandaUM
: U.S. Minor Outlying IslandsUS
: United StatesUY
: UruguayUZ
: UzbekistanVA
: Vatican CityVC
: Saint Vincent and the GrenadinesVE
: VenezuelaVG
: British Virgin IslandsVI
: U.S. Virgin IslandsVN
: VietnamVU
: VanuatuWF
: Wallis and FutunaWS
: SamoaXK
: KosovoYE
: YemenYT
: MayotteZA
: South AfricaZM
: ZambiaZW
: Zimbabwe
All data was extrated from GeoNames which is licensed under a Creative Commons Attribution 3.0 License.
See also: