Download the PHP package tiago_alves/licen-sys_conector_packpage without Composer

On this page you can find all versions of the php package tiago_alves/licen-sys_conector_packpage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package licen-sys_conector_packpage

LicenSys Conector Packpage

Pacote Laravel para integração com a API LicenSys.

Instalação

Configuração

1. Variáveis de Ambiente

Adicione ao arquivo .env:

2. Registrar o Provider

O provider já está registrado em bootstrap/providers.php:

3. Publicar Configuração (Opcional)


Arquitetura dos Serviços


Configuração da API

Parâmetro Variável de Ambiente Descrição
api_url LICENSYS_API_URL URL base da API LicenSys
api_key_crypt LICENSYS_API_KEY Chave de API para autenticação

Serviços

1. ConectorService

Namespace: TiagoAlves\LicenSysConectorPackpage\Services\ConectorService

Descrição: Gerencia a conexão inicial e autenticação com a API. Utiliza credenciais estáticas (URL e API Key).

Métodos

Método Parâmetros Retorno Descrição
getUrlApi() - string Retorna a URL da API
setUrlApi(string $urlApi, bool $overwrite = false) $urlApi, $overwrite void Define a URL da API
getApiKey() - string Retorna a API Key
setApiKey(string $apiKey, bool $overwrite = false) $apiKey, $overwrite void Define a API Key
checkUrl() - bool Verifica se a URL da API está acessível
connect(string $uuid) $uuid array Conecta à API com o UUID da empresa
revokeMyTokens(string $uuid) $uuid array Revoga os tokens da sessão

Uso

2. LicenseManagerService

Namespace: TiagoAlves\LicenSysConectorPackpage\Services\LicenseManagerService

Descrição: Gerencia operações relacionadas a licenças e dados de empresas. Requer Bearer Token válido (obtido via ConectorService::connect()).

Construtor

Parâmetro Tipo Descrição
$bearerToken string Token de autenticação Bearer

Métodos

Método Parâmetros Retorno Endpoint API
getDataLicense(string $company_uuid) $company_uuid - UUID da empresa array GET /license_manager/getDataLicense
getMonths(string $company_uuid, int $month = 0, string\|int $year = 'all', string\|array $monthly_fee = 'all') $company_uuid, $month, $year, $monthly_fee array GET /license_manager/getMonths

Uso


3. TransferService

Namespace: TiagoAlves\LicenSysConectorPackpage\Services\TransferService

Descrição: Gerencia transferências e operações de PIX. Requer Bearer Token válido.

Construtor

Parâmetro Tipo Descrição
$bearerToken string Token de autenticação Bearer

Métodos

Método Parâmetros Retorno Endpoint API
send($company_uuid, $historic_company_id, $pix_origin_name, $file) $company_uuid, $historic_company_id, $pix_origin_name, $file (UploadFile) array POST /transfer/proccess
getQrCodePix(int $historic_company_id) $historic_company_id array GET /transfer/getQrCodePix

Uso


Fluxo de Autenticação


Endpoints da API

Serviço Método Endpoint Descrição
Conector POST /connect Autentica e obtém Bearer Token
Conector POST /revokeMyTokens Revoga tokens da sessão
Conector GET /check-api Verifica disponibilidade da API
LicenseManager GET /license_manager/getDataLicense Obtém dados da licença
LicenseManager GET /license_manager/getMonths Obtém meses/anos de licença
Transfer POST /transfer/proccess Envia transferência com arquivo
Transfer GET /transfer/getQrCodePix Obtém QR Code PIX

Exceptions

Serviço Exception Condição
ConectorService \Exception API URL não configurada
ConectorService \Exception API Key não configurada
LicenSysHttpUtils \Exception Bearer Token não definido

Exemplo Completo


All versions of licen-sys_conector_packpage with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tiago_alves/licen-sys_conector_packpage contains the following files

Loading the files please wait ...