Download the PHP package davsonsantos/evolution-api-php without Composer

On this page you can find all versions of the php package davsonsantos/evolution-api-php. 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 evolution-api-php

Evolution API PHP SDK

Uma implementação elegante, robusta e de alta performance para integração com a Evolution API v1. Construído sobre os pilares da arquitetura moderna de software, este SDK é agnóstico a frameworks, respeita as normas PSR-17/18 e tira proveito total das funcionalidades do PHP 8.2+.


🏗 Estrutura do Projeto

O pacote segue uma organização rigorosa para garantir manutenibilidade:

Diretorios

src/

├── Contracts/           # Interfaces e Contratos (Desacoplamento)

├── DTOs/                # EvolutionInstance (Objeto de dados unificado)

├── Exceptions/         # Hierarquia de erros (Auth, NotFound, etc)

├── Providers/          # Integração nativa com Laravel

└── EvolutionClient.php # O coração do SDK

🚀 Instalação

composer require davsonsantos/evolution-api-php

💻 Uso em PHP Puro (Agnóstico)

Este SDK não te prende a frameworks. Você pode usá-lo com qualquer implementação de cliente HTTP que respeite a PSR-18 (como Guzzle ou Symfony HTTP Client).

use EvolutionPHP\EvolutionClient;
use GuzzleHttp\Client as GuzzleClient;
use GuzzleHttp\Psr7\HttpFactory;

$evolution = new EvolutionClient(
    baseUrl: 'https://sua-api.com',
    apiKey: 'sua_global_api_key',
    httpClient: new GuzzleClient(),
    requestFactory: new HttpFactory()
);

try {
    $instance = $evolution->connect('minha_loja');
    echo "QR Code: " . $instance->qrCodeBase64;
} catch (\EvolutionPHP\Exceptions\InstanceNotFoundException $e) {
    // Trate instâncias não existentes
}

🍃 Uso com Laravel

O SDK possui Auto-discovery. Basta configurar suas variáveis de ambiente:

  1. Adicione ao seu .env:asdasdasd

    EVOLUTION_BASE_URL=https://api.suadominio.com
    EVOLUTION_API_KEY=seu_token_aqui

2) (Opcional) Publique o arquivo de configuração:

    php artisan vendor:publish --tag="evolution-config"

3) Injeção de Dependência em seus Controllers:

    use EvolutionPHP\EvolutionClient;

    public function connect(EvolutionClient $evolution)
    {
        $instance = $evolution->connect('vendas_01');
        return view('qrcode', ['code' => $instance->qrCodeBase64]);
    }

🛡 Tratamento de Exceções

Não trabalhamos com arrays de erro ambíguos. O SDK lança exceções de domínio específicas:

Exceção                     Causa
AuthException               API Key inválida ou expirada (401/403).
InstanceNotFoundException   A instância solicitada não existe (404).
EvolutionException          Erro genérico da API ou falha de comunicação.

Funcionalidades

🛠 Funcionalidades Implementadas [x] Conexão e Geração de QR Code (Base64)

[x] Consulta de status de instância

[x] DTO Unificado para respostas de API

[x] Tratamento de erros via Exceções de Domínio

[x] Suporte total a PSR-17 e PSR-18

⚖ Licença

The MIT License (MIT). Por favor, veja o MIT para mais informações.


All versions of evolution-api-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
psr/http-client Version ^1.0
psr/http-factory Version ^1.1
illuminate/support Version ^10.0|^11.0
guzzlehttp/guzzle Version ^7.10
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 davsonsantos/evolution-api-php contains the following files

Loading the files please wait ...