wagnermontanini/layoutsyspdv

Biblioteca para geração de arquivos de importação e exportação de dados do sistema SYSPDV

1.0.0 2021-01-12 12:02 UTC

This package is auto-updated.

Last update: 2024-12-12 20:55:18 UTC


README

Maintainer Source Code PHP from Packagist Latest Version Software License Build Quality Score Total Downloads

LayoutSyspdv Library is a small set of classes developed for integration with the Syspdv System.

LayoutSyspdv Library é um pequeno conjunto de classes desenvolvidas para integração ao Sistema Syspdv.

Highlights

  • Simple installation (Instalação simples)
  • Abstraction of all API methods (Abstração de todos os métodos da API)
  • Composer ready and PSR-2 compliant (Pronto para o composer e compatível com PSR-2)

Installation

Uploader is available via Composer:

"wagnermontanini/layoutsyspdv": "^1.0"

or run

composer require wagnermontanini/layoutsyspdv

Documentation

For details on how to use, see a sample folder in the component directory. In it you will have an example of use for each class. It works like this:

Para mais detalhes sobre como usar, veja uma pasta de exemplo no diretório do componente. Nela terá um exemplo de uso para cada classe. Ele funciona assim:

GeraArq:

<?php
require __DIR__ . "/../vendor/autoload.php";

use WagnerMontanini\LayoutSyspdv\GeraLayout;

$geraLayout = new GeraLayout();

$syspdv = $geraLayout->geraLayoutSyspadm([
    ["001"=> "99",
    "002"=> "A"]    
])->geraLayoutSyspaplic([
    ["001"=> "9999",
    "002"=> "A"]    
])->geraLayoutSyspcar([
    ["001"=> "9999999999999999999",
    "002"=> "999999",
    "003"=> "A",
    "004"=> "A",
    "005"=> date("Y-m-d"), //VERIFICAR DATA QUANDO TESTAR
    "006"=> "99999999999999"]    
])->geraLayoutSyspcarac([
    ["001"=> "9999",
    "002"=> "A"]    
])->geraLayoutSyspcfo([
    ["001"=> "99999",
    "002"=> "A",
    "003"=> "A",
    "004"=> "",
    "005"=> "",
    "006"=> "",
    "007"=> "",
    "008"=> "",
    "009"=> "",
    "010"=> "",
    "011"=> "",
    "012"=> "",
    "013"=> "",
    "014"=> "",
    "015"=> "",
    "016"=> "",
    "017"=> "",
    "018"=> "",
    "019"=> ""]    
]);

Contributing

Please see CONTRIBUTING for details.

Support

Security: If you discover any security related issues, please email wagnermontanini@hotmail.com.br instead of using the issue tracker.

Se você descobrir algum problema relacionado à segurança, envie um e-mail para wagnermontanini@hotmail.com.br em vez de usar o rastreador de problemas.

Thank you

Credits

License

The MIT License (MIT). Please see License File for more information.