Download the PHP package gowa-php/sdk without Composer

On this page you can find all versions of the php package gowa-php/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sdk

# gowa-php **Pure PHP SDK for GOWA (go-whatsapp-web-multidevice) & WhatsApp Web, powered by whatsmeow** [![Latest Version](https://img.shields.io/packagist/v/gowa-php/sdk.svg?style=flat-square)](https://packagist.org/packages/gowa-php/sdk) [![Total Downloads](https://img.shields.io/packagist/dt/gowa-php/sdk.svg?style=flat-square)](https://packagist.org/packages/gowa-php/sdk) [![Plumb score](https://plumbphp.dev/badges/gowa-php/sdk/composite.svg)](https://plumbphp.dev/gowa-php/sdk) [![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE) [![PHP Version](https://img.shields.io/badge/PHP-%3E%3D%208.2-777BB4.svg?style=flat-square)](https://php.net)

🇧🇷 Para ler a documentação em Português, acesse README.pt.md.


⚡ Acknowledgments & Dependencies

This SDK interacts with the Go backend ecosystem created by the open-source community:


Installation

Requirements

Usage Example

1. Initialize Configuration and Client

2. Device Management & Pairing

3. Sending Messages and Media

Text, Links, Polls & Mentions

Media Uploads (Files, URLs, Mentions & View Once)

Scheduled & Recurring Message Sends (GOWA v9.5+)

Message Actions (Forward, Edit, Revoke, Reactions, Star & Chat History)

Media Download (Echo Candidate Phones, Timeout, and Cleanup)

4. Webhook Verification & Event Parsing

Available Features Summary

Device Management

Feature Method Endpoint
Register Device & Webhook createDevice() POST /devices
List Registered Devices devices(), listDevices() GET /devices
Update Webhook Config updateWebhook() PATCH /devices/:id/webhook
Start QR Pairing startQrPairing() GET /devices/:id/login
Start 8-Digit Code Pairing startCodePairing() POST /devices/:id/login/code
Query Device Info & Status device() GET /devices/:id
Reconnect Device reconnectDevice() POST /devices/:id/reconnect
Logout Device (Keep Slot) logout() POST /devices/:id/logout
Purge / Delete Device Slot deleteDevice() DELETE /devices/:id

Messages & Interactions

Feature Method Endpoint
Text Message (Mentions, Duration, Schedule) sendText() POST /send/message
Image (Caption Mentions, View-Once, Schedule) sendMedia() POST /send/image
Video (Caption Mentions, View-Once, Schedule) sendMedia() POST /send/video
Audio / PTT Voice Note (Schedule) sendMedia() (voice: true) POST /send/audio
Document / File (Caption Mentions, Schedule) sendMedia() POST /send/file
WebP Sticker sendSticker() POST /send/sticker
Location sendLocation() POST /send/location
Contact Card sendContacts() POST /send/contact
URL Link Preview sendLink() POST /send/link
Interactive Poll sendPoll() POST /send/poll
Emoji Reaction sendReaction() POST /message/:id/reaction
Forward Message (Schedule) forwardMessage() POST /message/:id/forward
Edit Message editMessage() POST /message/:id/update
Revoke Message (Delete for All) revokeMessage() POST /message/:id/revoke
Delete Message (Local) deleteMessage() POST /message/:id/delete
Star / Unstar Message starMessage() POST /message/:id/star, POST /message/:id/unstar
Mark Audio Played markPlayed() POST /message/:id/played
Mark Read / Typing markRead() POST /message/:id/read
On-Demand Chat History requestChatHistory() POST /chat/:jid/history

Scheduled & Recurring Sends (GOWA v9.5+)

Feature Method Endpoint
List Scheduled Sends listSchedules() GET /send/schedules
Get Scheduled Send getSchedule() GET /send/schedules/:id
Pause Scheduled Send pauseSchedule() POST /send/schedules/:id/pause
Resume Scheduled Send resumeSchedule() POST /send/schedules/:id/resume
Cancel Scheduled Send cancelSchedule() POST /send/schedules/:id/cancel

Contacts, Presence & Media Download

Feature Method Endpoint
Check User on WhatsApp checkUser() GET /user/check
Contact Profile Picture avatar() GET /user/avatar
Prepare Media Download describeMedia() GET /message/:id/download
Download Decrypted Media downloadMedia() GET media URL

Error Handling

The SDK provides structured exceptions to clearly differentiate between network/transport unreachability, permanent media refusals, and server validation/refusal responses:

🔒 Security & Multi-Tenancy Considerations

Tenant Isolation & Device Scoping

Anti-SSRF Validation & Redirect Protection

Any media or QR image URL fetched through downloadMedia() or fetchQrImage() is strictly validated via GowaHost::assertBelongsToServer() to ensure requests only target the configured GOWA server. Furthermore, automatic HTTP redirects are explicitly disabled (allow_redirects: false) to prevent unvalidated redirects from escaping the configured host, protecting against SSRF attacks and credential leaks.

Running Tests (Pest PHP)

⚠️ Disclaimer & Terms of Use

This software is an open-source library created for educational, research, and testing laboratory purposes.

Contributing

Please see CONTRIBUTING.md and CODE_OF_CONDUCT.md for details.

License

This package is open-source software licensed under the MIT License.


All versions of sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-json Version *
ext-hash Version *
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
guzzlehttp/guzzle Version ^7.8 || ^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gowa-php/sdk contains the following files

Loading the files please wait ...