Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alephao/brazilian-utils-elixir
Utilities library for Brazilian Businesses
https://github.com/alephao/brazilian-utils-elixir
boleto brasil brazil brazilian cities cnpj cpf elixir landline mobile phone states validator
Last synced: 3 months ago
JSON representation
Utilities library for Brazilian Businesses
- Host: GitHub
- URL: https://github.com/alephao/brazilian-utils-elixir
- Owner: alephao
- License: mit
- Created: 2020-09-22T22:17:57.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-09-24T15:06:55.000Z (over 4 years ago)
- Last Synced: 2024-10-06T21:05:09.165Z (4 months ago)
- Topics: boleto, brasil, brazil, brazilian, cities, cnpj, cpf, elixir, landline, mobile, phone, states, validator
- Language: Elixir
- Homepage:
- Size: 97.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BrazilianUtils
Utilities library for Brazilian Businesses based on [brazilian-utils/brazilian-utils](https://github.com/brazilian-utils/brazilian-utils)
Full documentation can be found at https://hexdocs.pm/brazilian_utils
## Installation
The package can be installed by adding `brazilian_utils` to
your list of dependencies in `mix.exs`:```elixir
def deps do
[
{:brazilian_utils, "~> 0.2.0"}
]
end
```## TODO
- [x] is_valid_cpf
- [x] format_cpf
- [ ] is_valid_cnpj
- [ ] format_cnpj
- [x] is_valid_cep
- [ ] is_valid_boleto
- [x] is_valid_phone
- [x] is_valid_mobile_phone
- [x] is_valid_landline_phone
- [ ] is_valid_pis
- [x] format_cep
- [ ] is_valid_ie
- [x] get_states
- [x] get_cities## LICENSE
[MIT](LICENSE)