All Projects → vinibrsl → burocracia.cr

vinibrsl / burocracia.cr

Licence: MIT License
No dependency Crystal shard to validate, generate and format Brazilian burocracias such as CPF, CNPJ and CEP

Programming Languages

crystal
512 projects

Projects that are alternatives of or similar to burocracia.cr

insomnia-plugin-documents-br
O plugin tem a finalidade de gerar documentos e alguns dados mais usados, o foco é para dados do Brasil.
Stars: ✭ 21 (+0%)
Mutual labels:  cpf, cnpj, brasil
flunt.br
Extensions of Flunt for Brazilian projects
Stars: ✭ 42 (+100%)
Mutual labels:  cep, cpf, cnpj
cnpj
🇧🇷 Format, validate and generate CNPJ numbers in Node & Deno
Stars: ✭ 26 (+23.81%)
Mutual labels:  brazil, cnpj, brasil
php-states
Library to provides Brazilian States as Value Objects in PHP
Stars: ✭ 22 (+4.76%)
Mutual labels:  brazil, brasil
enredo
Linguagem de programação moderna em portugues, baseada em JS
Stars: ✭ 35 (+66.67%)
Mutual labels:  brazil, brasil
nuvem-candidatos
🇧🇷 Nuvem de palavras com os planos de governo dos candidatos à presidência em 2018
Stars: ✭ 20 (-4.76%)
Mutual labels:  brazil, brasil
brazil-civil-registry-data
Raw scrapings of ARPEN https://transparencia.registrocivil.org.br/
Stars: ✭ 35 (+66.67%)
Mutual labels:  brazil, brasil
ibge
🌎 Data collection of geographical divisions of Brazil by IBGE (https://servicodados.ibge.gov.br/api/docs)
Stars: ✭ 28 (+33.33%)
Mutual labels:  brazil, brasil
viacep
ViaCEP - Consulte CEPs de todo o Brasil
Stars: ✭ 44 (+109.52%)
Mutual labels:  cep, brasil
city-codes
Brazilian city names and official codes, IBGE, LexML and others
Stars: ✭ 39 (+85.71%)
Mutual labels:  cep, brazil
covid19-br-info
Coronavirus frontend info about Brazil's states and cities
Stars: ✭ 12 (-42.86%)
Mutual labels:  brazil, brasil
sidrar
A R interface to IBGE's SIDRA API
Stars: ✭ 49 (+133.33%)
Mutual labels:  brazil, brasil
computeiro
Computer science courses, books and exams in your pocket. Built with Flutter and Free! ❤️
Stars: ✭ 27 (+28.57%)
Mutual labels:  brazil, brasil
Brasil
.NET DevPack BR é uma coleção de utilidades como classes de documentos nacionais (CPF, CNPJ) com validação e classes de utilidade em geral. Desenvolvido para ser utilizado junto com o NetDevPack
Stars: ✭ 64 (+204.76%)
Mutual labels:  cpf, cnpj
brazil-ios-utils
🇧🇷 Utils libraries for specific use cases / business in Brazil
Stars: ✭ 31 (+47.62%)
Mutual labels:  brazil, cpf
nfe
Bibliotecas para geração, validação, assinatura e transmissão de XMLs da NFe em Go
Stars: ✭ 20 (-4.76%)
Mutual labels:  brazil, brasil
consultacep
🇧🇷 Consulta CEP é uma aplicação básica para consulta de CEP
Stars: ✭ 21 (+0%)
Mutual labels:  cep, brasil
transparencia-dados-abertos-brasil
A survey of Brazilian states' and municipalities' transparency and open data portals, as well as institutional websites, obtained from several public data sources. 🇧🇷 Levantamento de portais estaduais e municipais de transparência e dados abertos, bem como os portais institucionais, obtido a partir de diversas fontes públicas de dados.
Stars: ✭ 46 (+119.05%)
Mutual labels:  brazil, brasil
pix-payload-generator.net
Gerar payload para qrcode estático PIX. (Sistema de pagamento instantâneo do Brasil) Sem a necessidade de conexão com um PSP.
Stars: ✭ 23 (+9.52%)
Mutual labels:  brazil, brasil
mongo orm
Mongo ORM: A simple ORM for using MongoDB with the crystal programming language, designed for use with Amber. Based loosely on Granite ORM. Supports Rails-esque models, associations and embedded documents.
Stars: ✭ 32 (+52.38%)
Mutual labels:  crystal-language

burocracia.cr Dependencies GitHub license

All Brazilian boring burocracias solved

burocracia.cr is the dependecyless Crystal shard to validate, generate and format Brazilian burocracias such as CPF, CNPJ and CEP.

(clique aqui para uma versão em português 🇧🇷)

Installation

Add this to your application's shard.yml:

dependencies:
  burocracia:
    github: vnbrs/burocracia.cr

Usage

require "burocracia"

Burocracia::CEP.generate
=> "23230133"

Burocracia::CEP.generate(format: true)
=> "71946-192"

Burocracia::CEP::Address.find "80210-130"
=> #<CEP::Address:0x10e1b83c0 @cep="80210130", @neighborhood="Jardim Botânico", @city="Curitiba", @street="Rua José Ananias Mauad", @state="Paraná", @state_abbreviation="PR">

Burocracia::CPF.valid?("10880423971")
=> false

Burocracia::CNPJ.format("92583745000149")
=> "92.583.745/0001-49"

Burocracia::CNPJ.sanitize("92.583.745/0001-49")
=> "92583745000149"

Read the full documentation here.

Contributing

  1. Fork it ( https://github.com/vnbrs/burocracia.cr/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Please, don't forget to document the code and run crystal docs to apply the changes to /docs folder.

Contributors

  • vnbrs Vinicius Brasil - creator, maintainer
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].