Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arcphysx/laravel-pejer
Pejer API Wrapper For Laravel and Lumen
https://github.com/arcphysx/laravel-pejer
Last synced: about 2 months ago
JSON representation
Pejer API Wrapper For Laravel and Lumen
- Host: GitHub
- URL: https://github.com/arcphysx/laravel-pejer
- Owner: arcphysx
- License: mit
- Created: 2021-02-07T04:27:07.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-07T04:44:44.000Z (almost 4 years ago)
- Last Synced: 2024-11-16T00:48:46.405Z (about 2 months ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LaravelPejer
Pejer API Wrapper For Laravel and Lumen## Installation
You can install the package using composer
```sh
$ 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.```php
'providers' => [
...
Arcphysx\LaravelPejer\Providers\LaravelPejerServiceProvider::class
...
];
```Then add some required value on your .env file
```
PEJER_API_TOKEN=""
PEJER_TEAM_ID=""
```You can publish the configuration file and assets by running:
```sh
$ 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:
```sh
$ composer dump-autoload
```## Basic Usage
### Send Whatsapp Message
```php
LaravelPejer::whatsapp()
->sendMessage('', '')
->ok()
```### Validate Whatsapp Number
```php
LaravelPejer::whatsapp()
->validateAccountExist('')
->json()
```