arcphysx/laravel-pejer

Pejer API Wrapper For Laravel and Lumen
26 1
Install
composer require arcphysx/laravel-pejer
Latest Version:v1.0.0
PHP:^7.2
License:MIT
Last Updated:Feb 7, 2021
Links: GitHub  ·  Packagist
Maintainer: arcphysx

LaravelPejer

Pejer API Wrapper For Laravel and Lumen

Installation

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

Basic Usage

Send Whatsapp Message

LaravelPejer::whatsapp()
            ->sendMessage('<your-phone-number>', '<your-mesage>')
            ->ok()

Validate Whatsapp Number

    LaravelPejer::whatsapp()
                ->validateAccountExist('<your-phone-number>')
                ->json()

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

631,580,251 9,707
laravel/framework

The Laravel Framework.

580,311,802 34,925
laravel/tinker

Powerful REPL for the Laravel framework.

489,754,436 7,444
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

404,034,618 608
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

384,821,166 4,658