PHPackages                             jhenrique/bot-conversa - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jhenrique/bot-conversa

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jhenrique/bot-conversa
======================

Biblioteca para integrar com BotConversa

v1.0.8(1y ago)159MITPHPPHP &gt;=7.4

Since Jan 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/JhenriOliveira/bot-conversa)[ Packagist](https://packagist.org/packages/jhenrique/bot-conversa)[ RSS](/packages/jhenrique-bot-conversa/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

BotConversa Biblioteca PHP para integrar com o BotConversa API.

Essa biblioteca facilita a comunicação com o BotConversa, fornecendo métodos prontos para gerenciar assinantes, enviar mensagens e mais.

Instalação
==========

[](#instalação)

composer require jhenrique/bot-conversa

---

Configuração
============

[](#configuração)

Adicione um arquivo .env Na raiz do seu projeto, crie um arquivo .env com as seguintes variáveis:

BASE\_URL=API\_KEY=seu\_api\_key\_aqui API\_TIMEOUT=30

Crie uma pasta com nome "logs" na raiz do projeto

---

Carregue as variáveis de ambiente
=================================

[](#carregue-as-variáveis-de-ambiente)

Antes de usar a biblioteca, certifique-se de que as variáveis foram carregadas. Por exemplo:

use Dotenv\\Dotenv;

require\_once **DIR** . '/vendor/autoload.php';

$dotenv = Dotenv::createImmutable(**DIR**); $dotenv-&gt;load();

---

Uso
===

[](#uso)

Exemplo de como usar a biblioteca:

use BotConversa\\ApiClient;

$botconversa = new ApiClient();

// Obter informações de um contato por telefone $subscriber = $botconversa-&gt;getSubscriberByPhone('5511999999999'); print\_r($subscriber);

// Criar um novo contato $newSubscriber = $botconversa-&gt;createSubscriber('5511988887777', 'João', 'Silva'); print\_r($newSubscriber);

// Enviar uma mensagem para um contato $response = $botconversa-&gt;sendMessage('contato\_id', 'text', 'Olá, tudo bem?'); print\_r($response);

---

Funções
=======

[](#funções)

- Subscribers getSubscriberByPhone(string $phone) getSubscribers(int $page) createSubscriber(string $phone, string $first\_name, string $last\_name) deleteSubscriber(string $id) addTagSubscriber(string $id, string $id\_tag) (*NOVO*) deleteTagSubscriber(string $id, string $id\_tag) (*NOVO*) addSequencesSubscriber(string $id, string $id\_sequence) (*NOVO*) deleteSequencesSubscriber(string $id, string $id\_sequence) (*NOVO*) addCampaignsSubscriber(string $id, string $id\_campaign) (*NOVO*) deleteCampaignsSubscriber(string $id, string $id\_campaign) (*NOVO*)
- Message sendMessage(string $id, string $type, string $message) sendMessageFlow(string $id, string $flow) (*NOVO*)
- Tags getTags() (*NOVO*)
- Flows getFlows() (*NOVO*)

---

Licença
=======

[](#licença)

Este projeto está licenciado sob a licença MIT.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

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 ~0 days

Total

2

Last Release

541d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a544341437154970529b1e3731efd1644c730f56f02f274321d7b1d457116a1c?d=identicon)[Jhenrique](/maintainers/Jhenrique)

### Embed Badge

![Health badge](/badges/jhenrique-bot-conversa/health.svg)

```
[![Health](https://phpackages.com/badges/jhenrique-bot-conversa/health.svg)](https://phpackages.com/packages/jhenrique-bot-conversa)
```

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[vinkla/wordplate

The WordPlate boilerplate

2.2k5.3k](/packages/vinkla-wordplate)[lullabot/drainpipe

An automated build tool to allow projects to have a set standardized operations scripts.

43785.5k4](/packages/lullabot-drainpipe)[phlak/directory-lister

PHP directory lister

2.5k1.4k](/packages/phlak-directory-lister)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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