susutawar / php-watzap
Unofficial Php implementation fot watzap API
0.1.0
2024-02-01 16:00 UTC
Requires
- php: ^7.2.5|^8
- guzzlehttp/guzzle: *
- illuminate/console: ^8|^9|10.x-dev
- illuminate/http: ^8|^9|10.x-dev
- illuminate/support: ^8|^9|10.x-dev
This package is auto-updated.
Last update: 2024-10-16 10:22:29 UTC
README
Unofficial PHP wrapper for watzap.id
Table Of Contents
Installation
install the package
composer require susutawar/php-watzap
Laravel
publish the config file to be used in Laravel project
php artisan vendor:publish --tag=watzap
add WATZAP_API_KEY
to your .env
Usage
To use the package, create an instance of PhpWatzap/WatZap
use PhpWatzap/WatZap; // ... $watzapClient = new WatZap("MY_API_KEY"); $result = $watzapClient->apiKey(); $resultBody = $result->body;
Laravel Usage
run php artisan watzap:keys
to get your whatsapp number key
use PhpWatzapp/Facade/Watzap; // ... $result = Watzap::apiKey(); $resultBody = $result->body;