Download the PHP package gabrielesbaiz/whatsapp-toolkit without Composer

On this page you can find all versions of the php package gabrielesbaiz/whatsapp-toolkit. 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 whatsapp-toolkit

WhatsappToolkit

Click-to-chat links for Laravel — wa.me/393331234567?text=Hi%20%2ASarah%2A rather than a URL that opens WhatsApp and no conversation — with formatting, QR codes and Cloud API sending on top.

Latest version Downloads Stars Sponsor

📖 Read the documentation →

Every config key, the whole API, the Cloud API and its error codes, recipes for the things that actually come up, and the errors you will hit with what each one means.

[!CAUTION] Upgrading from 1.x? Read UPGRADE.md first. Phone numbers are now normalised rather than url-encoded, format() no longer returns encoded text, and the default link is wa.me. url() keeps its signature — but every link it produces is different, because the old ones opened a chat with nobody.

[!IMPORTANT] A ⭐ costs you nothing and helps other developers find this package. Sponsoring keeps it compatible with every new Laravel release.

What it does

WhatsApp publishes the click-to-chat URL format, and it is two lines of string concatenation. If your phone column already holds digits, your message is already plain text, and nobody will ever paste rich text into it, write those two lines and move on. This package is what those three assumptions cost when they turn out to be false:

The sending half stays completely dormant until you configure it: no routes, no credential reads, nothing. Most applications install this for the links alone, and it costs them nothing beyond Laravel to do so.

Requirements

Installation

The service provider is auto-discovered and there is nothing to register: no migrations, no tables, no assets. Publishing is optional — the one setting worth putting in .env straight away is WHATSAPP_COUNTRY_CODE, so local numbers reach the right country.

Full installation guide →

Artisan commands

Command Purpose
whatsapp:url {phone} {message?} Print the formatted body and the link. --target= picks the flavour.
whatsapp:status Show the resolved configuration, mask the token, and ping the Cloud API.

See the commands page.

Documentation

Documentation site Everything: install, configure, operate.
Guide Links, numbers, formatting, QR, sending, webhook, Nova.
Configuration Every key, its default, and what changing it does.
API reference Every method, the message types, the fake, events and exceptions.
Recipes Whole solutions to things that actually come up.
Troubleshooting The errors people hit, and what each one means.
UPGRADE.md Upgrading from 1.x. Read before you start.
CHANGELOG.md What changed, and when.

Testing

CI runs the first three on PHP 8.3 and 8.4 against Laravel 11 and 12, at both lowest and stable dependencies.

Contributing

Thank you for considering contributing. The guide is in CONTRIBUTING.md.

Security vulnerabilities

Please review SECURITY.md for reporting a vulnerability. Please do not open a public issue.

Credits

Written and maintained by Gabriele Sbaiz.

This package builds on Laravel, spatie/laravel-package-tools, and — when you ask for a QR code — bacon/bacon-qr-code.

Support this package

If it is useful to you:

Sponsor on GitHub

Disclaimer

This package is provided as is, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, title and non-infringement. To the fullest extent permitted by applicable law, in no event shall the authors, copyright holders or contributors be liable for any claim, damages or other liability — whether in an action of contract, tort or otherwise — arising from, out of or in connection with this package or its use, including without limitation any direct, indirect, incidental, special, exemplary, consequential or punitive damages, loss of data, loss of profits, business interruption, or messages delivered to the wrong recipient.

It builds links and formats text; it cannot tell you whether a number belongs to the person you think it does, or whether it has WhatsApp at all. A click-to-chat link is public by construction — anything prefilled into one travels in a URL and may appear in browser history and server logs, so do not prefill a secret. The Cloud API half depends entirely on Meta's platform: its rate limits, template approvals, 24-hour messaging window and error codes are theirs, not this package's, and they change without notice. Whoever deploys this is responsible for what is sent, to whom, and with what consent — including meeting whatever regulatory, contractual or messaging-policy obligations apply to them, and reviewing the code before putting it in front of a customer conversation. Nothing here constitutes security, legal or compliance advice.

Use of this package is entirely at your own risk.

License

MIT. See LICENSE.md. The MIT licence's warranty disclaimer and limitation of liability apply in full, alongside the disclaimer above.


All versions of whatsapp-toolkit with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-json Version *
illuminate/contracts Version ^11.0||^12.0||^13.0
illuminate/support Version ^11.0||^12.0||^13.0
spatie/laravel-package-tools Version ^1.16
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 gabrielesbaiz/whatsapp-toolkit contains the following files

Loading the files please wait ...