PHPackages                             lucasvdh/laravelwhatsapp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lucasvdh/laravelwhatsapp

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

lucasvdh/laravelwhatsapp
========================

A Laravel wrapper for 'whatsapp/chat-api'

145538PHP

Since Feb 17Pushed 8y ago1 watchersCompare

[ Source](https://github.com/lucasvdh/laravelwhatsapp)[ Packagist](https://packagist.org/packages/lucasvdh/laravelwhatsapp)[ RSS](/packages/lucasvdh-laravelwhatsapp/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Deprecated and not working
==========================

[](#deprecated-and-not-working)

The repo which this package relied on is no longer working, sorry. Hopefully whatsapp will bring out their business API soon. If so I'll implement the new API in this laravel package.

Laravel Whatsapp
================

[](#laravel-whatsapp)

This is a Laravel wrapper for the [whatsapp/chat-api](//github.com/mgp25/Chat-API) package

Getting started
---------------

[](#getting-started)

1. [Include the package in your application](#include-the-package-in-your-application)
2. [Register the service provider and aliases](#register-the-service-provider-and-aliases)
3. [Create a listener](#create-a-listener)
4. [Registration](#registration)
5. [Sending a message](#sending-a-message)

Include the package in your application
---------------------------------------------------------------------------------------------------------

[](#include-the-package-in-your-application-)

```
composer require lucasvdh/laravelwhatsapp:dev-master
```

Or add a requirement to your project's composer.json

```
  "require": {
    "lucasvdh/laravelmacros": "dev-master"
  },
```

Register the service provider and aliases
-------------------------------------------------------------------------------------------------------------

[](#register-the-service-provider-and-aliases-)

Edit the `config/app.php` file. Append the following to the `providers` array:

```
  'providers' => [
    // ...
    Lucasvdh\LaravelWhatsapp\WhatsappServiceProvider::class,
    // ...
  ],
```

Register the aliases:

```
  'aliases' => [
    // ...
    'Whatsapp' => Lucasvdh\LaravelWhatsapp\Facades\Whatsapp::class,
    // ...
  ],
```

Create a listener
-------------------------------------------------------------

[](#create-a-listener-)

```
