{"id":14985445,"url":"https://github.com/jhowbhz/myzap-sdk-php","last_synced_at":"2025-04-11T15:31:34.254Z","repository":{"id":38004490,"uuid":"442631417","full_name":"jhowbhz/myzap-sdk-php","owner":"jhowbhz","description":"Um simples SDK em PHP para consumir o MYZAP em PHP","archived":false,"fork":false,"pushed_at":"2023-03-19T21:48:05.000Z","size":123,"stargazers_count":48,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"stable","last_synced_at":"2025-04-03T12:56:10.653Z","etag":null,"topics":["api","apigratis","composer","laravel-package","myzap","package-php","php","sdk","telegram","whatsapp"],"latest_commit_sha":null,"homepage":"http://myzap.apibrasil.com.br/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jhowbhz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":"jhowbhz","otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2021-12-29T01:50:00.000Z","updated_at":"2025-03-01T04:37:09.000Z","dependencies_parsed_at":"2024-09-24T15:44:47.903Z","dependency_job_id":null,"html_url":"https://github.com/jhowbhz/myzap-sdk-php","commit_stats":{"total_commits":118,"total_committers":3,"mean_commits":"39.333333333333336","dds":"0.11016949152542377","last_synced_commit":"8db28d38a4eb19cc2e7c83be3336c200990a1957"},"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhowbhz%2Fmyzap-sdk-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhowbhz%2Fmyzap-sdk-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhowbhz%2Fmyzap-sdk-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhowbhz%2Fmyzap-sdk-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhowbhz","download_url":"https://codeload.github.com/jhowbhz/myzap-sdk-php/tar.gz/refs/heads/stable","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248431474,"owners_count":21102205,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","apigratis","composer","laravel-package","myzap","package-php","php","sdk","telegram","whatsapp"],"created_at":"2024-09-24T14:10:59.013Z","updated_at":"2025-04-11T15:31:30.619Z","avatar_url":"https://github.com/jhowbhz.png","language":"PHP","funding_links":["https://issuehunt.io/r/jhowbhz"],"categories":[],"sub_categories":[],"readme":"![APIGratis Banner](https://i.imgur.com/u6hYLsU.png)\n\n[![latest stable version](https://poser.pugx.org/jhowbhz/package-apigratis/v/stable.svg)](https://packagist.org/packages/jhowbhz/package-apigratis)\n[![license mit](https://poser.pugx.org/jhowbhz/package-apigratis/license.svg)](https://packagist.org/packages/jhowbhz/package-apigratis)\n\u003ca href=\"https://github.com/jhowbhz/myzap-sdk-php/issues\" target=\"_blank\"\u003e\u003cimg alt=\"GitHub issues\" src=\"https://img.shields.io/github/issues/jhowbhz/myzap-sdk-php\"\u003e\u003c/a\u003e\n\u003cimg alt=\"GitHub all releases\" src=\"https://img.shields.io/github/downloads/jhowbhz/myzap-sdk-php/total\"\u003e\n\u003ca href=\"https://github.com/jhowbhz/myzap-sdk-php/network\" target=\"_blank\"\u003e\u003cimg alt=\"GitHub forks\" src=\"https://img.shields.io/github/forks/jhowbhz/myzap-sdk-php\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/jhowbhz/myzap-sdk-php/stargazers\" target=\"_blank\"\u003e\u003cimg alt=\"GitHub stars\" src=\"https://img.shields.io/github/stars/jhowbhz/myzap-sdk-php\"\u003e\u003c/a\u003e\n[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.4-8892BF.svg?style=flat-square)](https://php.net/)\n\n## Description\n\u003e This package use is myzap versions free or paid\n\n## Important notice\n\u003e ⚠️\u003cstrong\u003eBeta tester version\u003c/strong\u003e, some or more features may not work perfectly, do not use in production environment.\n\n## Our online channels\n\n[![Telegram Group](https://img.shields.io/badge/Telegram-Group-32AFED?logo=telegram)](https://t.me/apigratisoficial)\n[![WhatsApp Group](https://img.shields.io/badge/WhatsApp-Group-25D366?logo=whatsapp)](https://chat.whatsapp.com/KsxrUGIPWvUBYAjI1ogaGs)\n[![YouTube](https://img.shields.io/youtube/channel/subscribers/UC-_mG5VU7maEKt5rUj8tSbQ?label=YouTube)](https://www.youtube.com/channel/UC-_mG5VU7maEKt5rUj8tSbQ)\n\n\n## Install package with composer\n```composer require jhowbhz/package-apigratis```\n\n## Status developing\n\n| Up  | Services available            | Description       | Free    | Beta        | Stable   |\n------|-------------------------------|-------------------|---------| ------------------------- | ------------------------- |\n| ✅ | WhatsAppService                | Free in WhatsApp API.        |   ✅   | OK                | OK                    |\n\n## WhatsAppService - Examples usage\n\n### Start new session\n    \n```php\nuse ApiGratis\\ApiBrasil;\n\n$start = ApiBrasil::WhatsAppService(\"start\", [\n    \"server_host\" =\u003e \"https://whatsapp2.contrateumdev.com.br\",\n    \"apitoken\" =\u003e \"YOUR_API_TOKEN\",\n    \"session\" =\u003e \"YOUR_SESSION_NAME\",\n    \"sessionkey\" =\u003e \"YOUR_SESSION_KEY\",\n    \"wh_status\" =\u003e \"\", //optional\n    \"wh_message\" =\u003e \"\", //optional\n    \"wh_connect\" =\u003e \"\", //optional\n    \"wh_qrcode\" =\u003e \"\", //optional\n]);\n\necho $start;\n```\n### Get new QRCODE\n    \n```php\nuse ApiGratis\\ApiBrasil;\n\n$qrcode = ApiBrasil::WhatsAppService(\"getQrCode?session=YOUR_SESSION_NAME\u0026sessionkey=YOUR_SESSION_KEY\", [\n    \"serverhost\" =\u003e \"https://whatsapp2.contrateumdev.com.br\",\n    \"method\" =\u003e \"GET\",\n])\n\nheader(\"content-type: image/png\");\n\necho $qrcode;\n```\n\n### 💰 Get all chats ⭐new\n\n```php\nuse ApiGratis\\ApiBrasil;\n\n$allchats = ApiBrasil::WhatsAppService(\"getAllChat\", [\n  \"serverhost\" =\u003e \"https://whatsapp2.contrateumdev.com.br\",\n  \"session\" =\u003e \"YOUR_SESSION_NAME\",\n  \"sessionkey\" =\u003e \"YOUR_SESSION_KEY\",\n]);\n\necho $allchats;\n```\n\n### 💰 Get all for number ⭐new\n\n\n```php\nuse ApiGratis\\ApiBrasil;\n\n$getmessagesnumber = ApiBrasil::WhatsAppService(\"getMessagesChat\", [\n  \"serverhost\" =\u003e \"https://whatsapp2.contrateumdev.com.br\",\n  \"session\" =\u003e \"YOUR_SESSION_NAME\",\n  \"sessionkey\" =\u003e \"YOUR_SESSION_KEY\",\n  \"number\" =\u003e \"55995360492\",\n]);\n\necho $getmessagesnumber;\n```\n\n### 💰 Get infos host device ⭐new\n\n```php\nuse ApiGratis\\ApiBrasil;\n\n$gethostdevice = ApiBrasil::WhatsAppService(\"getHostDevice\", [\n  \"serverhost\" =\u003e \"https://whatsapp2.contrateumdev.com.br\",\n  \"session\" =\u003e \"YOUR_SESSION_NAME\",\n  \"sessionkey\" =\u003e \"YOUR_SESSION_KEY\",\n]);\n\necho $gethostdevice;\n```\n\n### Send text to number\n    \n```php\nuse ApiGratis\\ApiBrasil;\n\n$sendText = ApiBrasil::WhatsAppService(\"sendText\", [\n  \"serverhost\" =\u003e \"https://whatsapp2.contrateumdev.com.br\",\n  \"session\" =\u003e \"YOUR_SESSION_NAME\",\n  \"sessionkey\" =\u003e \"YOUR_SESSION_KEY\",\n  \"number\" =\u003e \"55995360492\",\n  \"text\" =\u003e \"IS MY FIRST TEXT SEND FROM APIBRASIL.COM.BR\"\n]);\n\necho $sendText;\n```\n### Send images and files remote path ⭐new\n\n```php\nuse ApiGratis\\ApiBrasil;\n\n$sendfile = ApiBrasil::WhatsAppService(\"sendFile\", [\n  \"serverhost\" =\u003e \"https://whatsapp2.contrateumdev.com.br\",\n  \"session\" =\u003e \"YOUR_SESSION_NAME\",\n  \"sessionkey\" =\u003e \"YOUR_SESSION_KEY\",\n  \"number\" =\u003e \"55995360492\",\n  \"fileName\" =\u003e \"FILE_NAME\"\n  \"path\" =\u003e \"https://www.euax.com.br/wp-content/uploads/2019/10/Teste.png\"\n  \"caption\" =\u003e \"FILE_CAPTION\"\n]);\n\necho $sendfile;\n```\n\n### Send images and files base64 ⭐new\n\n```php\nuse ApiGratis\\ApiBrasil;\n\n$sendfile64 = ApiBrasil::WhatsAppService(\"sendFile64\", [\n  \"serverhost\" =\u003e \"https://whatsapp2.contrateumdev.com.br\",\n  \"session\" =\u003e \"YOUR_SESSION_NAME\",\n  \"sessionkey\" =\u003e \"YOUR_SESSION_KEY\",\n  \"number\" =\u003e \"+55995360492\",\n  \"fileName\" =\u003e \"FILE_NAME\"\n  \"path\" =\u003e \"data:application/pdf;base64,.....\"\n  \"caption\" =\u003e \"FILE_CAPTION\"\n]);\n\necho $sendfile64;\n```\n\n### Send audio ⭐new\n\n```php\nuse ApiGratis\\ApiBrasil;\n\n$sendaudio = ApiBrasil::WhatsAppService(\"sendAudio\", [\n  \"serverhost\" =\u003e \"https://whatsapp2.contrateumdev.com.br\",\n  \"session\" =\u003e \"YOUR_SESSION_NAME\",\n  \"sessionkey\" =\u003e \"YOUR_SESSION_KEY\",\n  \"number\" =\u003e \"+55995360492\",\n  \"path\" =\u003e \"https://tuningmania.com.br/autosom/mp3/Sine%20sweep%20%2020%20kHz%20~%2020%20Hz.mp3\"\n]);\n\necho $sendaudio;\n```\n\n### 💰 Send buttons ⭐new\n\n```php\nuse ApiGratis\\ApiBrasil;\n\n$buttons = ApiBrasil::WhatsAppService(\"sendbutton\", [\n  \"serverhost\" =\u003e \"https://whatsapp2.contrateumdev.com.br\",\n  \"session\" =\u003e \"YOUR_SESSION_NAME\",\n  \"sessionkey\" =\u003e \"YOUR_SESSION_KEY\",\n  \"text\" =\u003e \"Teste de Envio de Mensagem com botoes\",\n  \"title\" =\u003e \"Botões\",\n  \"footer\" =\u003e \"Aqui vai o texto do rodapé da mensagem\",\n  \"buttons\" =\u003e [\n        [\n            \"buttonId\":\"btn_sim\", //get value in webhook\n            \"body\" =\u003e [\"displayText\":\"SIM\" ]\n        ],\n        [\n            \"buttonId\":\"btn_nao\", //get value in webhook\n            \"body\" =\u003e [\"displayText\":\"NÃO\" ]\n        ],\n    ]\n]);\n\necho $buttons;\n```\n\n### Get all groups ⭐new\n\n```php\nuse ApiGratis\\ApiBrasil;\n\n$groups = ApiBrasil::WhatsAppService(\"getAllGroups\", [\n  \"serverhost\" =\u003e \"https://whatsapp2.contrateumdev.com.br\",\n  \"session\" =\u003e \"YOUR_SESSION_NAME\",\n  \"sessionkey\" =\u003e \"YOUR_SESSION_KEY\",\n]);\n\necho $groups;\n```\n\n## Partner project Myzap v2\nhttps://github.com/edupoli/MyZap2.0\u003cbr/\u003e\nhttps://github.com/billbarsch/myzap\n\n### Service free powered by\n\u003ca href=\"https://apibrasil.com.br\" target=\"_blank\"\u003e APIBrasil \u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhowbhz%2Fmyzap-sdk-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjhowbhz%2Fmyzap-sdk-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhowbhz%2Fmyzap-sdk-php/lists"}