aryelgois / bank-interchange
Generate Bank Billets and Shipping Files, and read Return Files to interact with Banks
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 2
Open Issues: 0
pkg:composer/aryelgois/bank-interchange
Requires
- php: ^7.0
- ext-zip: *
- ext-zlib: *
- aryelgois/databases: ^0.7
- aryelgois/medools: ^5.1
- aryelgois/medools-router: ^0.3
- aryelgois/utils: ^0.5
- aryelgois/yasql-php: ^0.6
- setasign/fpdf: ^1.8
- symfony/yaml: ^3.4
- vria/nodiacritic: 0.*
This package is not auto-updated.
Last update: 2025-10-26 13:21:34 UTC
README
Index:
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.
O CNAB permite a comunicação entre empresas e bancos, organizando as informações em arquivos de texto com uma estrutura predefinida
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:
- 
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
 
- 
Um Arquivo Remessa, contendo um ou mais Títulos, é gerado e enviado ao banco antes que o cliente efetue o pagamento 
- 
O banco envia um Arquivo Retorno informando se o Título foi aceito, pago, tem algum erro, ou alguma outra ocorrência 
- 
Após o administrador conferir o resultado, o banco de dados é atualizado com novos dados 
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.
The CNAB allows a comunication between enterprises and banks, organizing the information in text files with a predefined layout
This package aims to automate the generation of bank billets and Shipping Files, and to help reading Return Files in a web server:
- 
When your client buys something, for exemple, a banking Title is created - This Title can be rendered as a bank billet, in PDF
 
- 
A Shipping File, containing one or more Titles, is generated and sent to the bank before the client makes the payment 
- 
The bank sends a Return File informing if the Title was accepted, paid, has an error, or some other occurrence 
- 
After the administrator checks the result, the database is updated with new data 
Setup
- 
Clone with Git 
- 
Create a web server with PHP 7 or higher - 
Using Apache is recommended because the .htaccessfiles are already created- Enable the AllowOverridedirective
 
- Enable the 
- 
Set the Document Root to public/
- 
If you are using HTTPS, uncomment the line with SSLRequireSSLdirective inpublic/.htaccess. It is highly recommended that you use SSL
 
- 
- 
Build the databases and run the generated SQL: see YASQL-PHP 
composer yasql-build && cat build/*.sql | mysql -u root -p
- 
Change the database credentials in config/medools.phpsee Medools
- 
Configure the Authentication secret in config/router.ymlsee Medools Router- You also need to register users
in the authenticationstable and add theirauthorizations
 
- You also need to register users
in the 
- 
Now you can develop inside public/- Make your app ajax request from server's /api/
 
- Make your app ajax request from server's 
TODO
- Real world tests
- A nice web interface