wapluginlab / php-lib
WAPLUGIN PHP library
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/wapluginlab/php-lib
Requires
- php: ^7.1
- ext-curl: *
Requires (Dev)
- phpunit/phpunit: ^7.0
- vlucas/phpdotenv: ^3.6
This package is auto-updated.
Last update: 2026-01-18 02:47:07 UTC
README
Installation
composer require wapluginlab/php-lib
Account
Get Account
use Waplugin\Config; use Waplugin\Account; $params['page'] = 1; Config::$secretKey = getenv('SECRET_KEY'); $result = Account::index($params); return $result;
View Account Detail
use Waplugin\Config; use Waplugin\Account; $account_id = 1; Config::$secretKey = getenv('SECRET_KEY'); $result = Account::show($account_id); return $result;
Status
use Waplugin\Config; use Waplugin\Wa; $account_id = 1; Config::$secretKey = getenv('SECRET_KEY'); $result = Wa::status($account_id); return $result;
Send Message
use Waplugin\Config; use Waplugin\Wa; $account_id = 1; $params['phone'] = '6281xxxxxx'; $params['msg'] = 'Lorem Ipsum Dolar Sit Maet'; Config::$secretKey = getenv('SECRET_KEY'); $result = Wa::send($account_id, $params); return $result;