Package Data | |
---|---|
Maintainer Username: | arcphysx |
Maintainer Contact: | arcphysx@gmail.com (arcphysx) |
Package Create Date: | 2021-02-07 |
Package Last Update: | 2021-02-07 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-01-24 15:01:00 |
Package Statistics | |
---|---|
Total Downloads: | 24 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Pejer API Wrapper For Laravel and Lumen
You can install the package using composer
$ composer require arcphysx/laravel-pejer
Then add the service provider to config/app.php
. In Laravel versions 5.5 and beyond, this step can be skipped if package auto-discovery is enabled.
'providers' => [
...
Arcphysx\LaravelPejer\Providers\LaravelPejerServiceProvider::class
...
];
Then add some required value on your .env file
PEJER_API_TOKEN="<your-pejer-api-token>"
PEJER_TEAM_ID="<your-pejer-team-id>"
You can publish the configuration file and assets by running:
$ php artisan vendor:publish --provider="Arcphysx\LaravelPejer\Providers\LaravelPejerServiceProvider"
After publishing a few new files to our application we need to reload them with the following command:
$ composer dump-autoload
LaravelPejer::whatsapp()
->sendMessage('<your-phone-number>', '<your-mesage>')
->ok()
LaravelPejer::whatsapp()
->validateAccountExist('<your-phone-number>')
->json()