gerencianet-carne is available via Composer:
"alexdeovidal/gerencianet-carne": "^1.0"
or run
composer require alexdeovidal/gerencianet-carne
<?php
require __DIR__ . "/vendor/autoload.php";
$gn = new \Source\Helpers\Gerencianet();
//CRIANDO BOLETO
$product = $gn->product("Mensalidade",1,5000);
$product2 = $gn->product("Mensalidade 2",1,1000);
$gn->find(1, [$product, $product2], "2020-03-10",12);
$gn->save();
//ATUALIZANDO DATA DO BOLETO
if(!$gn->updateParcel("47680", 12,"2022-11-11"))
{
$gn->error();;
}else{
echo "data alterada com sucesso";
}
//CANCELA PARCELA DO CARNÊ
if(!$gn->cancelParcel("47680", 12))
{
$gn->error();;
}else{
echo "parcela cancelada com sucesso";
}
//CANCELA CARNE
if(!$gn->cancelCarnet("47680"))
{
$gn->error();;
}else{
echo "carne cancelado com sucesso";
}
The MIT License (MIT). Please see License File for more information.