PHPackages                             jhowbhz/package-apigratis - 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. jhowbhz/package-apigratis

ActiveLibrary[API Development](/categories/api)

jhowbhz/package-apigratis
=========================

Uma forma simples de consumir serviços gratuitos oferecidos pelo site https://apigratis.com.br/

v0.3.0(3y ago)506.1k5MITPHPPHP &gt;=8.0CI failing

Since Dec 29Pushed 1y ago3 watchersCompare

[ Source](https://github.com/jhowbhz/myzap-sdk-php)[ Packagist](https://packagist.org/packages/jhowbhz/package-apigratis)[ Docs](https://apigratis.com.br)[ Fund](https://issuehunt.io/r/jhowbhz)[ RSS](/packages/jhowbhz-package-apigratis/feed)WikiDiscussions stable Synced 3d ago

READMEChangelog (10)Dependencies (5)Versions (34)Used By (0)

[![capa-og](https://private-user-images.githubusercontent.com/31408451/456621368-8f35cdd2-a795-4aca-888f-d72d2ddde0c3.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODMwMzMyMzUsIm5iZiI6MTc4MzAzMjkzNSwicGF0aCI6Ii8zMTQwODQ1MS80NTY2MjEzNjgtOGYzNWNkZDItYTc5NS00YWNhLTg4OGYtZDcyZDJkZGRlMGMzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA3MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNzAyVDIyNTUzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNiNjhmYzFkNjAyMjQzZDU1MmYyNzM2ODdmZDRjNGFkM2I4YWM2ZmI2YmM2ZGRkYzY1ZTBhOWQ3NTg1YjhhNjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.BygX9e7wgPLgmJAETHXQMUo9617UBrVFYyes9L7CSw0)](https://private-user-images.githubusercontent.com/31408451/456621368-8f35cdd2-a795-4aca-888f-d72d2ddde0c3.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODMwMzMyMzUsIm5iZiI6MTc4MzAzMjkzNSwicGF0aCI6Ii8zMTQwODQ1MS80NTY2MjEzNjgtOGYzNWNkZDItYTc5NS00YWNhLTg4OGYtZDcyZDJkZGRlMGMzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA3MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNzAyVDIyNTUzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNiNjhmYzFkNjAyMjQzZDU1MmYyNzM2ODdmZDRjNGFkM2I4YWM2ZmI2YmM2ZGRkYzY1ZTBhOWQ3NTg1YjhhNjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.BygX9e7wgPLgmJAETHXQMUo9617UBrVFYyes9L7CSw0)

[![latest stable version](https://camo.githubusercontent.com/bc440c63fd83ca7b39a09954067a69050b8a4225b1d30559d3c7ff52041d9a0f/68747470733a2f2f706f7365722e707567782e6f72672f6a686f7762687a2f7061636b6167652d6170696772617469732f762f737461626c652e737667)](https://packagist.org/packages/jhowbhz/package-apigratis)[![license mit](https://camo.githubusercontent.com/a2ae4d2e4a4dbcf0c6e7b5bfb8f3b6d01916536ef5d258ede59b35c75aca4625/68747470733a2f2f706f7365722e707567782e6f72672f6a686f7762687a2f7061636b6167652d6170696772617469732f6c6963656e73652e737667)](https://packagist.org/packages/jhowbhz/package-apigratis)[![GitHub issues](https://camo.githubusercontent.com/21085c8b48c792b315a1c2d1b2c466877ea34ee359d66ce59e87c14db7637f88/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6a686f7762687a2f6d797a61702d73646b2d706870)](https://github.com/jhowbhz/myzap-sdk-php/issues)[![GitHub all releases](https://camo.githubusercontent.com/d67a29eb155fb3f7f347ed766e81ea0fb27dd50974a478bdfc6f0c94b64dab27/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f6a686f7762687a2f6d797a61702d73646b2d7068702f746f74616c)](https://camo.githubusercontent.com/d67a29eb155fb3f7f347ed766e81ea0fb27dd50974a478bdfc6f0c94b64dab27/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f6a686f7762687a2f6d797a61702d73646b2d7068702f746f74616c)[![GitHub forks](https://camo.githubusercontent.com/2f87b4bb22e57ac062ad626af6f3df849483452d6a71fc24ff4631b2a74f3a81/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6a686f7762687a2f6d797a61702d73646b2d706870)](https://github.com/jhowbhz/myzap-sdk-php/network)[![GitHub stars](https://camo.githubusercontent.com/2f0b260be5306876d11d5049d6e4e052baea934dc2f843f71c91f001cd7c027c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6a686f7762687a2f6d797a61702d73646b2d706870)](https://github.com/jhowbhz/myzap-sdk-php/stargazers)[![Minimum PHP Version](https://camo.githubusercontent.com/eb773fa94283cbea6c7b192d460983a781ae4a16409af56d109fe3e8e71ab6c9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e342d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/)

Description
-----------

[](#description)

> This package use is myzap versions free or paid

Important notice
----------------

[](#important-notice)

> ⚠️**Beta tester version**, some or more features may not work perfectly, do not use in production environment.

Our online channels
-------------------

[](#our-online-channels)

[![Telegram Group](https://camo.githubusercontent.com/110b312affbdcdbae8c57feae6d4fda7ed0c5b7bdc0ea31d38d64e646baf751c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54656c656772616d2d47726f75702d3332414645443f6c6f676f3d74656c656772616d)](https://t.me/apigratisoficial)[![WhatsApp Group](https://camo.githubusercontent.com/abab26c6ead1458abad829719c8ced89a2bc6284a74c53d307cea7c0f359dd9c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f57686174734170702d47726f75702d3235443336363f6c6f676f3d7768617473617070)](https://chat.whatsapp.com/KsxrUGIPWvUBYAjI1ogaGs)[![YouTube](https://camo.githubusercontent.com/119697923a6d93430a22d2521502a0b45e118e21aa2461e127291c791f00adc8/68747470733a2f2f696d672e736869656c64732e696f2f796f75747562652f6368616e6e656c2f73756273637269626572732f55432d5f6d47355655376d61454b743572556a38745362513f6c6162656c3d596f7554756265)](https://www.youtube.com/channel/UC-_mG5VU7maEKt5rUj8tSbQ)

Install package with composer
-----------------------------

[](#install-package-with-composer)

`composer require jhowbhz/package-apigratis`

Status developing
-----------------

[](#status-developing)

UpServices availableDescriptionFreeBetaStable✅WhatsAppServiceFree in WhatsApp API.✅OKOKWhatsAppService - Examples usage
--------------------------------

[](#whatsappservice---examples-usage)

### Start new session

[](#start-new-session)

```
use ApiGratis\ApiBrasil;

$start = ApiBrasil::WhatsAppService("start", [
    "server_host" => "https://whatsapp2.contrateumdev.com.br",
    "apitoken" => "YOUR_API_TOKEN",
    "session" => "YOUR_SESSION_NAME",
    "sessionkey" => "YOUR_SESSION_KEY",
    "wh_status" => "", //optional
    "wh_message" => "", //optional
    "wh_connect" => "", //optional
    "wh_qrcode" => "", //optional
]);

echo $start;
```

### Get new QRCODE

[](#get-new-qrcode)

```
use ApiGratis\ApiBrasil;

$qrcode = ApiBrasil::WhatsAppService("getQrCode?session=YOUR_SESSION_NAME&sessionkey=YOUR_SESSION_KEY", [
    "serverhost" => "https://whatsapp2.contrateumdev.com.br",
    "method" => "GET",
])

header("content-type: image/png");

echo $qrcode;
```

### 💰 Get all chats ⭐new

[](#-get-all-chats-new)

```
use ApiGratis\ApiBrasil;

$allchats = ApiBrasil::WhatsAppService("getAllChat", [
  "serverhost" => "https://whatsapp2.contrateumdev.com.br",
  "session" => "YOUR_SESSION_NAME",
  "sessionkey" => "YOUR_SESSION_KEY",
]);

echo $allchats;
```

### 💰 Get all for number ⭐new

[](#-get-all-for-number-new)

```
use ApiGratis\ApiBrasil;

$getmessagesnumber = ApiBrasil::WhatsAppService("getMessagesChat", [
  "serverhost" => "https://whatsapp2.contrateumdev.com.br",
  "session" => "YOUR_SESSION_NAME",
  "sessionkey" => "YOUR_SESSION_KEY",
  "number" => "55995360492",
]);

echo $getmessagesnumber;
```

### 💰 Get infos host device ⭐new

[](#-get-infos-host-device-new)

```
use ApiGratis\ApiBrasil;

$gethostdevice = ApiBrasil::WhatsAppService("getHostDevice", [
  "serverhost" => "https://whatsapp2.contrateumdev.com.br",
  "session" => "YOUR_SESSION_NAME",
  "sessionkey" => "YOUR_SESSION_KEY",
]);

echo $gethostdevice;
```

### Send text to number

[](#send-text-to-number)

```
use ApiGratis\ApiBrasil;

$sendText = ApiBrasil::WhatsAppService("sendText", [
  "serverhost" => "https://whatsapp2.contrateumdev.com.br",
  "session" => "YOUR_SESSION_NAME",
  "sessionkey" => "YOUR_SESSION_KEY",
  "number" => "55995360492",
  "text" => "IS MY FIRST TEXT SEND FROM APIBRASIL.COM.BR"
]);

echo $sendText;
```

### Send images and files remote path ⭐new

[](#send-images-and-files-remote-path-new)

```
use ApiGratis\ApiBrasil;

$sendfile = ApiBrasil::WhatsAppService("sendFile", [
  "serverhost" => "https://whatsapp2.contrateumdev.com.br",
  "session" => "YOUR_SESSION_NAME",
  "sessionkey" => "YOUR_SESSION_KEY",
  "number" => "55995360492",
  "fileName" => "FILE_NAME"
  "path" => "https://www.euax.com.br/wp-content/uploads/2019/10/Teste.png"
  "caption" => "FILE_CAPTION"
]);

echo $sendfile;
```

### Send images and files base64 ⭐new

[](#send-images-and-files-base64-new)

```
use ApiGratis\ApiBrasil;

$sendfile64 = ApiBrasil::WhatsAppService("sendFile64", [
  "serverhost" => "https://whatsapp2.contrateumdev.com.br",
  "session" => "YOUR_SESSION_NAME",
  "sessionkey" => "YOUR_SESSION_KEY",
  "number" => "+55995360492",
  "fileName" => "FILE_NAME"
  "path" => "data:application/pdf;base64,....."
  "caption" => "FILE_CAPTION"
]);

echo $sendfile64;
```

### Send audio ⭐new

[](#send-audio-new)

```
use ApiGratis\ApiBrasil;

$sendaudio = ApiBrasil::WhatsAppService("sendAudio", [
  "serverhost" => "https://whatsapp2.contrateumdev.com.br",
  "session" => "YOUR_SESSION_NAME",
  "sessionkey" => "YOUR_SESSION_KEY",
  "number" => "+55995360492",
  "path" => "https://tuningmania.com.br/autosom/mp3/Sine%20sweep%20%2020%20kHz%20~%2020%20Hz.mp3"
]);

echo $sendaudio;
```

### 💰 Send buttons ⭐new

[](#-send-buttons-new)

```
use ApiGratis\ApiBrasil;

$buttons = ApiBrasil::WhatsAppService("sendbutton", [
  "serverhost" => "https://whatsapp2.contrateumdev.com.br",
  "session" => "YOUR_SESSION_NAME",
  "sessionkey" => "YOUR_SESSION_KEY",
  "text" => "Teste de Envio de Mensagem com botoes",
  "title" => "Botões",
  "footer" => "Aqui vai o texto do rodapé da mensagem",
  "buttons" => [
        [
            "buttonId":"btn_sim", //get value in webhook
            "body" => ["displayText":"SIM" ]
        ],
        [
            "buttonId":"btn_nao", //get value in webhook
            "body" => ["displayText":"NÃO" ]
        ],
    ]
]);

echo $buttons;
```

### Get all groups ⭐new

[](#get-all-groups-new)

```
use ApiGratis\ApiBrasil;

$groups = ApiBrasil::WhatsAppService("getAllGroups", [
  "serverhost" => "https://whatsapp2.contrateumdev.com.br",
  "session" => "YOUR_SESSION_NAME",
  "sessionkey" => "YOUR_SESSION_KEY",
]);

echo $groups;
```

Partner project Myzap v2
------------------------

[](#partner-project-myzap-v2)

### Service free powered by

[](#service-free-powered-by)

[ APIBrasil ](https://apibrasil.com.br)

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.4% 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 ~10 days

Total

33

Last Release

1311d ago

PHP version history (2 changes)v0.0.1PHP &gt;=7.4

v0.2.8.4PHP &gt;=8.0

### Community

Maintainers

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

---

Top Contributors

[![jhowbhz](https://avatars.githubusercontent.com/u/31408451?v=4)](https://github.com/jhowbhz "jhowbhz (122 commits)")[![GuilhermeAlbert](https://avatars.githubusercontent.com/u/13357231?v=4)](https://github.com/GuilhermeAlbert "GuilhermeAlbert (2 commits)")

---

Tags

apiapigratiscomposerlaravel-packagemyzappackage-phpphpsdktelegramwhatsappapimessageswhatsappPHP Requestsapigratismessages freemyzap

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jhowbhz-package-apigratis/health.svg)

```
[![Health](https://phpackages.com/badges/jhowbhz-package-apigratis/health.svg)](https://phpackages.com/packages/jhowbhz-package-apigratis)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[jhowbhz/apigratis-sdk-php

This package is free and can be used for API Brazil website functions

194.5k](/packages/jhowbhz-apigratis-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M577](/packages/shopware-core)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.6M13](/packages/checkout-checkout-sdk-php)

PHPackages © 2026

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