2017 © Pedro Peláez
 

library bank-interchange

Generate Bank Billets and Shipping Files, and read Return Files to interact with Banks

image

aryelgois/bank-interchange

Generate Bank Billets and Shipping Files, and read Return Files to interact with Banks

  • Saturday, June 2, 2018
  • by aryelgois
  • Repository
  • 0 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 12 Versions
  • 0 % Grown

The README.md

Bank Interchange

Index:, (*1)

Intro

pt_BR

Esse pacote implementa as especificações do CNAB240 e do CNAB400, definido pelo FEBRABAN, e contém geradores de boleto para diversos bancos, em PHP., (*2)

O CNAB permite a comunicação entre empresas e bancos, organizando as informações em arquivos de texto com uma estrutura predefinida, (*3)

O objetivo desse pacote é automatizar a criação de Boletos bancários e Arquivos Remessa, e facilitar a leitura de Arquivos Retorno em um servidor web:, (*4)

  1. Quando o cliente realiza uma compra, por exemplo, um Título bancário é criado
  • Esse Título pode ser representado como um boleto, em PDF
  1. Um Arquivo Remessa, contendo um ou mais Títulos, é gerado e enviado ao banco antes que o cliente efetue o pagamento, (*5)

  2. O banco envia um Arquivo Retorno informando se o Título foi aceito, pago, tem algum erro, ou alguma outra ocorrência, (*6)

  3. Após o administrador conferir o resultado, o banco de dados é atualizado com novos dados, (*7)

en_US

This package implements CNAB240 and CNAB400 specifications, defined by FEBRABAN (a Brazilian organization), and contains bank billet generators for various banks, in PHP., (*8)

The CNAB allows a comunication between enterprises and banks, organizing the information in text files with a predefined layout, (*9)

This package aims to automate the generation of bank billets and Shipping Files, and to help reading Return Files in a web server:, (*10)

  1. When your client buys something, for exemple, a banking Title is created
  • This Title can be rendered as a bank billet, in PDF
  1. A Shipping File, containing one or more Titles, is generated and sent to the bank before the client makes the payment, (*11)

  2. The bank sends a Return File informing if the Title was accepted, paid, has an error, or some other occurrence, (*12)

  3. After the administrator checks the result, the database is updated with new data, (*13)

Setup

  1. Clone with Git, (*14)

  2. Create a web server with PHP 7 or higher, (*15)

  • Using Apache is recommended because the .htaccess files are already created, (*16)

    • Enable the AllowOverride directive
  • Set the Document Root to public/, (*17)

  • If you are using HTTPS, uncomment the line with SSLRequireSSL directive in public/.htaccess. It is highly recommended that you use SSL, (*18)

  1. Build the databases and run the generated SQL: see YASQL-PHP, (*19)

    composer yasql-build && cat build/*.sql | mysql -u root -p
    
  2. Change the database credentials in config/medools.php see Medools, (*20)

  3. Configure the Authentication secret in config/router.yml see Medools Router, (*21)

  • You also need to register users in the authentications table and add their authorizations
  1. Now you can develop inside public/
  • Make your app ajax request from server's /api/

TODO

  • [ ] Real world tests
  • [ ] A nice web interface

Documentation

Changelog

The Versions

02/06 2018

dev-develop

dev-develop

Generate Bank Billets and Shipping Files, and read Return Files to interact with Banks

  Sources   Download

MIT

The Requires

 

by Aryel Mota Góis

ticket bank cnab240 cnab400 febraban billet

02/06 2018

dev-master

9999999-dev

Generate Bank Billets and Shipping Files, and read Return Files to interact with Banks

  Sources   Download

MIT

The Requires

 

by Aryel Mota Góis

ticket bank cnab240 cnab400 febraban billet

02/06 2018

v0.2.0

0.2.0.0

Generate Bank Billets and Shipping Files, and read Return Files to interact with Banks

  Sources   Download

MIT

The Requires

 

by Aryel Mota Góis

ticket bank cnab240 cnab400 febraban billet

30/05 2018

dev-medools-router

dev-medools-router

Generate Bank Billets and Shipping Files, and read Return Files to interact with Banks

  Sources   Download

MIT

The Requires

 

by Aryel Mota Góis

ticket bank cnab240 cnab400 febraban billet

21/05 2018

v0.x-dev

0.9999999.9999999.9999999-dev

Generate Bank Billets and Shipping Files, and read Return Files to interact with Banks

  Sources   Download

MIT

The Requires

 

by Aryel Mota Góis

ticket bank cnab240 cnab400 febraban billet

25/04 2018

dev-redesign-database

dev-redesign-database

Generate Bank Billets and Shipping Files, and read Return Files to interact with Banks

  Sources   Download

MIT

The Requires

 

by Aryel Mota Góis

ticket bank cnab240 cnab400 febraban billet

16/02 2018

dev-update-shippingfile

dev-update-shippingfile

Generate Bank Billets and Shipping Files, and read Return Files to interact with Banks

  Sources   Download

MIT

The Requires

 

by Aryel Mota Góis

ticket bank cnab240 cnab400 febraban billet

18/01 2018

dev-fix

dev-fix

Generate Bank Billets and Shipping Files, and read Return Files to interact with Banks

  Sources   Download

MIT

The Requires

 

by Aryel Mota Góis

ticket bank cnab240 cnab400 febraban billet

28/11 2017

v0.1

0.1.0.0

Generate Bank Billets and Shipping Files, and read Return Files to interact with Banks

  Sources   Download

MIT

The Requires

 

by Aryel Mota Góis

ticket bank cnab240 cnab400 febraban billet

28/11 2017

dev-big-improvement

dev-big-improvement

Generate Bank Billets and Shipping Files, and read Return Files to interact with Banks

  Sources   Download

MIT

The Requires

 

by Aryel Mota Góis

ticket bank cnab240 cnab400 febraban billet

18/09 2017

dev-new-cnab400

dev-new-cnab400

Generate Bank Billets and Shipping Files, and read Return Files to interact with Banks

  Sources   Download

MIT

The Requires

 

by Aryel Mota Góis

ticket bank cnab240 cnab400 febraban billet

12/09 2017

dev-new-bankbillet

dev-new-bankbillet

Generate Bank Billets and Shipping Files, and read Return Files to interact with Banks

  Sources   Download

MIT

The Requires

 

by Aryel Mota Góis

ticket bank cnab febraban billet