PHPackages                             tocaan/gowasl-package - 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. [API Development](/categories/api)
4. /
5. tocaan/gowasl-package

ActiveLibrary[API Development](/categories/api)

tocaan/gowasl-package
=====================

simple laravel package to connect your whatsapp and send messages

v1.0.0(1y ago)0247PHP

Since Nov 2Pushed 1y ago4 watchersCompare

[ Source](https://github.com/tocaan/gowasl-package)[ Packagist](https://packagist.org/packages/tocaan/gowasl-package)[ RSS](/packages/tocaan-gowasl-package/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

WAIntegration
=============

[](#waintegration)

simple laravel package to connect your whatsapp and send messages.

Installation
============

[](#installation)

```
composer require tocaan/gowasl-package

```

After updating composer, add the ServiceProvider to the providers array in config/app.php.

```
WAIntegration\WAServiceProvider::class,

```

Optionally you can use the Facade for shorter code. Add this to your facades:

```
'Instance' => WAIntegration\Facades\InstanceFacade::class,
'Message' => WAIntegration\Facades\MessageFacade::class,

```

more is coming soon.

Finally you can publish the config file:

```
 php artisan vendor:publish --provider="WAIntegration\WAServiceProvider"

```

Configuration
=============

[](#configuration)

The main change to this config file (config/wa\_integration.php) will be filled with your channel credentials.

For example, when loaded with composer, the line should look like:

```
 'id'                    => env('WA_CHANNEL_ID','YOUR_CHANNEL_ID_HERE'),
 'token'                 => env('WA_CHANNEL_TOKEN','YOUR_CHANNEL_TOKEN_HERE'),
 'identifier'            => env('WA_CHANNEL_IDENTIFIER','YOUR_CHANNEL_OWNER_IDENTIFIER_HERE'),

```

Usage
=====

[](#usage)

You can create a new (Message or Instance) instance and begin sending messages or fetching qr &amp; account activity status.

Use the facade:
===============

[](#use-the-facade)

- Instance Facade
-----------------

[](#--instance-facade)

```
   Instace::qr()

```

To fetch current qr

```
   Instance::status()

```

To Check If account status is active or disconnected

```
   Instance::disconnect()

```

Disconnect Channel Connection

```
   Instance::clearInstance()

```

Delete Channel, becareful when trying to use it

```
   Instance::clearInstanceData()

```

Clear all files associated with channel

- Message Facade
----------------

[](#--message-facade)

- Send Text Message Via Whatsapp

```
   Message::send([
      'phone' => '965xxxxxxxx',
      'body'  => 'Your Message Body Here'
   ])

```

- Send Multi-Media Message Via Whatsapp
- Image

```
   Message::sendImage([
      'phone' => '965xxxxxxxx',
      'url'  => 'url of your image',
      'caption' => 'image caption (optional)'
   ])

```

- Video

```
   Message::sendVideo([
      'phone' => '965xxxxxxxx',
      'url'  => 'url of your video',
      'caption' => 'image caption (optional)'
   ])

```

- Audio

```
   Message::sendAudio([
      'phone' => '965xxxxxxxx',
      'url'  => 'url of your audio file',
   ])

```

- Document

```
   Message::sendFile([
      'phone' => '965xxxxxxxx',
      'url'  => 'url of your document file',
   ])

```

- Link

```
   Message::sendLink([
      'phone' => '965xxxxxxxx',
      'url'  => 'HTTPS URL',
      'title' => 'URL Title',
      'body' => 'URL Description',
   ])

```

- Sticker

```
   Message::sendSticker([
      'phone' => '965xxxxxxxx',
      'url'  => 'url of your Sticker',
   ])

```

- Gif

```
   Message::sendGif([
      'phone' => '965xxxxxxxx',
      'url'  => 'url of your Gif',
      'caption' => 'Gif caption (optional)'
   ])

```

- Location

```
   Message::sendLocation([
      'phone' => '965xxxxxxxx',
      'lat'  => 'location latitude',
      'lng' => 'location longitude'
   ])

```

- Contact

```
   Message::sendContact([
      'phone' => '965xxxxxxxx',
      'name'  => 'Contact Name',
      'contact' => 'Contact Whatsapp Number',
      'organization' => 'Contact Organization (optional)',
   ])

```

- Mention

```
   Message::sendMention([
      'phone' => '965xxxxxxxx',
      'mention' => 'Mention Whatsapp Number',
   ])

```

Note: Your Connection status must be connected it means that you had already scanned QR.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

638d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/22634d946ccae8799787bebcd8ea49cb4df8936e767c8acf972d990e3e0e8b8b?d=identicon)[tocaan](/maintainers/tocaan)

---

Top Contributors

[![AhmedNabil94](https://avatars.githubusercontent.com/u/28203366?v=4)](https://github.com/AhmedNabil94 "AhmedNabil94 (15 commits)")[![AhmedNabil15994](https://avatars.githubusercontent.com/u/126563238?v=4)](https://github.com/AhmedNabil15994 "AhmedNabil15994 (9 commits)")[![AhmedSafwat1](https://avatars.githubusercontent.com/u/38819467?v=4)](https://github.com/AhmedSafwat1 "AhmedSafwat1 (3 commits)")

### Embed Badge

![Health badge](/badges/tocaan-gowasl-package/health.svg)

```
[![Health](https://phpackages.com/badges/tocaan-gowasl-package/health.svg)](https://phpackages.com/packages/tocaan-gowasl-package)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
