PHPackages                             nvoip/nvoip-php - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. nvoip/nvoip-php

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

nvoip/nvoip-php
===============

SDK PHP oficial para integrar OAuth, chamadas, OTP, WhatsApp, SMS e saldo com a API v2 da Nvoip.

v0.1.1(1mo ago)301GPL-3.0-onlyPHPPHP &gt;=8.0CI passing

Since Apr 30Pushed 1mo agoCompare

[ Source](https://github.com/Nvoip/nvoip-php)[ Packagist](https://packagist.org/packages/nvoip/nvoip-php)[ Docs](https://www.nvoip.com.br/)[ RSS](/packages/nvoip-nvoip-php/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

nvoip-php
=========

[](#nvoip-php)

[![CI](https://github.com/Nvoip/nvoip-php/actions/workflows/ci.yml/badge.svg)](https://github.com/Nvoip/nvoip-php/actions/workflows/ci.yml) [![Packagist](https://camo.githubusercontent.com/eb281928d70200bc27e467f37d00d89e88a76e9415b41123d30573480ad05fc8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e766f69702f6e766f69702d7068703f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nvoip/nvoip-php) [![Packagist downloads](https://camo.githubusercontent.com/0216b4bd8498a9ef69d66be6c21cb397c21d854db25e7299a4ccc35fc025d18e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e766f69702f6e766f69702d7068703f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nvoip/nvoip-php) [![Nvoip](https://camo.githubusercontent.com/3f1946dfe2af7b7aa53f25ce215047892a4ad25b1b4e03691f44d0885e78bf85/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4e766f69702d736974652d3030413345303f7374796c653d666c61742d737175617265)](https://www.nvoip.com.br/) [![API v2](https://camo.githubusercontent.com/64622f1350ec96836f3c201cc4cb7c81a642c5160bc1e2fb1df3a2c341cdef64/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4150492d76322d3146364645423f7374796c653d666c61742d737175617265)](https://www.nvoip.com.br/api/) [![Docs](https://camo.githubusercontent.com/fcff0759d8addc99af4a9b6733be63d849fa5c05d424c7ec2d60bf11cdcc2e18/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63732d4170696172792d3641373337443f7374796c653d666c61742d737175617265)](https://nvoip.docs.apiary.io/) [![Postman](https://camo.githubusercontent.com/e80663fa0dae8998dfaf0ccb923581b75fe24086dfeb75b978b94569623eb4e1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f73746d616e2d776f726b73706163652d4646364333373f7374796c653d666c61742d737175617265)](https://nvoip-api.postman.co/workspace/e671d01f-168a-4c38-8d0e-c217229dd61a/team-quickstart) [![Stack](https://camo.githubusercontent.com/566046bca9e4e2615f35e5d4f85c3fbf63493dec9170a0c5faa256c88cc3d756/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737461636b2d5048502d3737374242343f7374796c653d666c61742d737175617265)](https://github.com/Nvoip/nvoip-api-examples) [![License: GPL-3.0](https://camo.githubusercontent.com/d2d804516b756fff3c92cc6ae221567a4949a47fbd62b95ed3061de5f76b53c7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d47504c2d2d332e302d626c75653f7374796c653d666c61742d737175617265)](LICENSE)

SDK e exemplos oficiais da [Nvoip](https://www.nvoip.com.br/) para integrar a API v2 com OAuth, chamadas, OTP, WhatsApp, SMS e saldo em PHP.

O que tem aqui
--------------

[](#o-que-tem-aqui)

- `src/NvoipClient.php`: cliente leve para a API v2
- `examples/`: exemplos separados por fluxo principal
- `Scripts/sender-sms.php`: endpoint PHP simples para disparo de SMS via query string

Requisitos
----------

[](#requisitos)

- PHP 8.0+
- extensao `curl`

Instalacao
----------

[](#instalacao)

```
composer require nvoip/nvoip-php
```

Configuracao
------------

[](#configuracao)

No painel da Nvoip, em `API`, voce encontra:

- `numbersip`
- `user-token`
- `napikey`

Tambem configure um destes formatos:

```
export NVOIP_OAUTH_CLIENT_ID="seu_client_id"
export NVOIP_OAUTH_CLIENT_SECRET="seu_client_secret"
```

Exemplos
--------

[](#exemplos)

- `php examples/create-access-token.php`
- `php examples/send-sms.php`
- `php examples/create-call.php`
- `php examples/send-otp.php`
- `php examples/check-otp.php`
- `php examples/list-whatsapp-templates.php`
- `php examples/send-whatsapp-template.php`

Mini endpoint HTTP
------------------

[](#mini-endpoint-http)

O arquivo `Scripts/sender-sms.php` mantem a ideia do script legado, mas ja usando OAuth da API v2.

Exemplo:

```
https://seusite.exemplo/Scripts/sender-sms.php?numbersip=SEU_NUMBERSIP&user_token=SEU_USER_TOKEN&numberPhone=11999999999&message=Mensagem%20de%20teste

```

SDK web
-------

[](#sdk-web)

Para o fluxo de popup com telefone e codigo, use o repositório `nvoip-web-sdk`. Este repo cobre o consumo server-side da API.

Links oficiais
--------------

[](#links-oficiais)

- [Site da Nvoip](https://www.nvoip.com.br/)
- [Documentação da API](https://nvoip.docs.apiary.io/)
- [Página da API](https://www.nvoip.com.br/api/)
- [Workspace Postman](https://nvoip-api.postman.co/workspace/e671d01f-168a-4c38-8d0e-c217229dd61a/team-quickstart)
- [Hub de exemplos](https://github.com/Nvoip/nvoip-api-examples)

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance92

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

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

Total

2

Last Release

40d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/99b2211df8fb061ff420975dd9062fe6955129873e3f992917bcae5ed4ee677e?d=identicon)[nvoip](/maintainers/nvoip)

---

Top Contributors

[![leandronvoip](https://avatars.githubusercontent.com/u/40430440?v=4)](https://github.com/leandronvoip "leandronvoip (38 commits)")

---

Tags

apicomposernvoipoauthotppackagistphpsdksmstelefoniavoipwhatsappapiotpsmswhatsappvoipnvoiptelefonia

### Embed Badge

![Health badge](/badges/nvoip-nvoip-php/health.svg)

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

###  Alternatives

[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35729.6k2](/packages/telnyx-telnyx-php)[salehhashemi/laravel-otp-manager

Laravel OTP manager

18813.5k](/packages/salehhashemi-laravel-otp-manager)[craftsys/msg91-laravel

Laravel service provider for Msg91 apis to Send OTPs, Verify OTPs, Resend OTPs, Send SMS (Short Message) etc

13101.0k2](/packages/craftsys-msg91-laravel)

PHPackages © 2026

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