Skip to content

Commit

Permalink
Add statesBR helper
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogobbosouza committed Oct 18, 2021
1 parent 8752b1d commit 05a966e
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions src/helpers.php
Original file line number Diff line number Diff line change
@@ -1 +1,41 @@
<?php

if (! function_exists('statesBR')) {
/**
* Brazilian states.
*
* @return array
*/
function statesBR()
{
return [
'AC' => 'Acre',
'AL' => 'Alagoas',
'AP' => 'Amapá',
'AM' => 'Amazonas',
'BA' => 'Bahia',
'CE' => 'Ceará',
'DF' => 'Distrito Federal',
'ES' => 'Espírito Santo',
'GO' => 'Goiás',
'MA' => 'Maranhão',
'MT' => 'Mato Grosso',
'MS' => 'Mato Grosso do Sul',
'MG' => 'Minas Gerais',
'PA' => 'Pará',
'PB' => 'Paraíba',
'PR' => 'Paraná',
'PE' => 'Pernambuco',
'PI' => 'Piauí',
'RJ' => 'Rio de Janeiro',
'RN' => 'Rio Grande do Norte',
'RS' => 'Rio Grande do Sul',
'RO' => 'Rondônia',
'RR' => 'Roraima',
'SC' => 'Santa Catarina',
'SP' => 'São Paulo',
'SE' => 'Sergipe',
'TO' => 'Tocantins',
];
}
}

0 comments on commit 05a966e

Please sign in to comment.