Download the PHP package hoangkhacphuc/zalo_bot without Composer
On this page you can find all versions of the php package hoangkhacphuc/zalo_bot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download hoangkhacphuc/zalo_bot
More information about hoangkhacphuc/zalo_bot
Files in hoangkhacphuc/zalo_bot
Download hoangkhacphuc/zalo_bot
More information about hoangkhacphuc/zalo_bot
Files in hoangkhacphuc/zalo_bot
Vendor hoangkhacphuc
Package zalo_bot
Short Description A PHP library for building Zalo chatbots. This library works in plain PHP, Laravel, or any PHP framework. It provides a set of Data Transfer Objects (DTOs), exceptions, and helper methods to interact with the Zalo API and handle messages safely.
License MIT
Package zalo_bot
Short Description A PHP library for building Zalo chatbots. This library works in plain PHP, Laravel, or any PHP framework. It provides a set of Data Transfer Objects (DTOs), exceptions, and helper methods to interact with the Zalo API and handle messages safely.
License MIT
Please rate this library. Is it a good library?
Informations about the package zalo_bot
Hoangkhacphuc/ZaloBot
A lightweight, framework-agnostic PHP SDK to build Zalo chatbots with safety, testability, and developer ergonomics.
Features
- Handle Zalo messages and events
- Type-safe DTOs:
Message,Webhook,InfoMe,MessageResponse - SOLID architecture with interfaces and DI
- Works in plain PHP or Laravel
- Rich exceptions for robust error handling
Why Use This Library?
- Framework-independent: works anywhere
- Type-safe: DTOs ensure validated data
- Testable: dependency-injected collaborators and factories
- Extensible: swap implementations via interfaces
- Production-ready: explicit errors and safe parsing
Requirements
- PHP 8.1 or higher
- Composer
- Optional: Laravel 9+ for Laravel integration
Installation
Install via Composer:
Quick Start (Plain PHP)
Handle Webhooks
Laravel Integration
-
Publish config:
-
Set environment variables in
.env: - Use
WebhookServicevia container:
Testing
- Pest tests included (
tests/). - Run:
composer test
Configuration & Environment
- Use
BotConfig($accessToken, $webhookUrl, $webhookSecret). - For Laravel, manage via
config/zalobot.phpand.env.
Error Handling
The SDK throws domain-specific exceptions like HttpException, UnauthorizedException, SendMessageException.
Migration
This is the first stable release (v1.0.0). No migration needed.
License
MIT License. See the LICENSE file for details.
All versions of zalo_bot with dependencies
PHP Build Version
Package Version
The package hoangkhacphuc/zalo_bot contains the following files
Loading the files please wait ...