PHPackages                             luannsr12/apiwpp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. luannsr12/apiwpp

ActiveLibrary[API Development](/categories/api)

luannsr12/apiwpp
================

SDK PHP Evolution Api Whatsapp

2.0.9(5mo ago)6449↓100%3MITPHPPHP &gt;=8.2

Since Mar 20Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/luannsr12/evolution-sdk)[ Packagist](https://packagist.org/packages/luannsr12/apiwpp)[ GitHub Sponsors](https://github.com/luannsr12)[ RSS](/packages/luannsr12-apiwpp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)DependenciesVersions (12)Used By (0)

SDK PHP para Evolution API WhatsApp
===================================

[](#sdk-php-para-evolution-api-whatsapp)

[![Packagist](https://camo.githubusercontent.com/066872cdd706b8b5fd710db7fe50bdbd161b360f558bc53c050972772b8e27de/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c75616e6e737231322f6170697770702e7376673f7374796c653d666c6174)](https://packagist.org/packages/luannsr12/apiwpp)[![License](https://camo.githubusercontent.com/699158c1431e218a253fb7be523871d9a2becccc7f4a7e40c3185d4d66c4d16c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c75616e6e737231322f6170697770702e7376673f7374796c653d666c6174)](LICENSE)[![Downloads](https://camo.githubusercontent.com/81480a45fe7057348cf0c72cbafc79cb953b60dc7950de6daf46a72b562bb796/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c75616e6e737231322f6170697770702e7376673f7374796c653d666c6174)](https://packagist.org/packages/luannsr12/apiwpp)[![PHP Version](https://camo.githubusercontent.com/c0ed0f8d83ef26babd8cfea09b82598e5deea8a12cc030686a57af30ac67dcc6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6c75616e6e737231322f6170697770702e7376673f7374796c653d666c6174)](https://www.php.net/)

Introdução
----------

[](#introdução)

`evolution-sdk` é uma SDK em PHP para integração com a Evolution API, possibilitando o envio de mensagens, gerenciamento de dispositivos (instâncias) e configuração de webhooks no WhatsApp de forma simples e eficiente.

---

Requisitos
----------

[](#requisitos)

- PHP &gt;= 8.2
- Composer
- Servidor Evolution API &gt;= v2.0 configurado e acessível

---

Instalação
----------

[](#instalação)

```
composer require luannsr12/apiwpp
```

---

Configuração Inicial
--------------------

[](#configuração-inicial)

```
use Apiwpp\Config\Api;

Api::setConfigs('SEU_TOKEN_ADMIN', 'URL_DA_SUA_API');
Api::debug(true); // Ativa o modo debug (opcional)
```

---

Gerenciamento de Devices (Instâncias)
-------------------------------------

[](#gerenciamento-de-devices-instâncias)

### Criar nova instância

[](#criar-nova-instância)

```
use Apiwpp\Api\Evolution2\Device;

$response = Device::create('TOKEN_DA_INSTANCIA', 'NOME_DA_INSTANCIA');
print_r($response);
```

### Definir instância ativa para envio

[](#definir-instância-ativa-para-envio)

```
Device::setInstance('TOKEN_INSTANCIA', 'NOME_INSTANCIA');
```

---

Envio de Mensagens
------------------

[](#envio-de-mensagens)

### Mensagem de texto simples

[](#mensagem-de-texto-simples)

```
use Apiwpp\Api\Evolution2\Message;

Message::type('text');
Message::phone('551199999999');
Message::text('Olá, esta é uma mensagem de teste.');

if (Message::send()) {
    echo 'Mensagem enviada com sucesso!';
} else {
    echo 'Falha ao enviar mensagem.';
}
```

### Enviar mídia (imagem, áudio, vídeo, documento)

[](#enviar-mídia-imagem-áudio-vídeo-documento)

```
Message::type('image'); // audio, document, video
Message::phone('551199999999');
Message::file('https://link-da-imagem-ou-caminho-local.jpg');
Message::caption('Legenda da imagem'); // opcional

Message::send();
```

---

Verificação de Número no WhatsApp
---------------------------------

[](#verificação-de-número-no-whatsapp)

```
use Apiwpp\Api\Evolution2\Account;

if (Account::checkPhone('551199999999')) {
    echo 'Número existe no WhatsApp.';
} else {
    echo 'Número não encontrado.';
}
```

---

Webhooks
--------

[](#webhooks)

### Configurar URL para recebimento de mensagens

[](#configurar-url-para-recebimento-de-mensagens)

```
use Apiwpp\Api\Evolution2\Device;

Device::setWebhook('https://seusite.com.br/webhook');
```

---

Tratamento de Erros
-------------------

[](#tratamento-de-erros)

```
use Apiwpp\Error\ExceptionError;

try {
    // Código da SDK
} catch (Exception $e) {
    echo ExceptionError::getMessage();
}
```

---

Exemplos
--------

[](#exemplos)

No diretório `/examples` você encontra scripts prontos para:

- Criar e conectar instância
- Enviar mensagens simples e mídia
- Verificar número WhatsApp
- Configurar webhooks

---

Contribuições
-------------

[](#contribuições)

Bug reports, sugestões e pull requests são bem-vindos!
Por favor, abra issues no GitHub para discussão.

---

Licença
-------

[](#licença)

MIT License © Luan Alves

---

Contato
-------

[](#contato)

Para dúvidas ou suporte:

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance70

Regular maintenance activity

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~61 days

Recently: every ~101 days

Total

11

Last Release

166d ago

Major Versions

v1.0.0 → v2.0.02024-05-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a11002091f85858ab4ee36b9300d2786b0d60b236ed0bf9c9986b4a7272f6d0?d=identicon)[luannsr12](/maintainers/luannsr12)

---

Top Contributors

[![luannsr12](https://avatars.githubusercontent.com/u/32730441?v=4)](https://github.com/luannsr12 "luannsr12 (11 commits)")

### Embed Badge

![Health badge](/badges/luannsr12-apiwpp/health.svg)

```
[![Health](https://phpackages.com/badges/luannsr12-apiwpp/health.svg)](https://phpackages.com/packages/luannsr12-apiwpp)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M453](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
