PHPackages                             kylewlawrence/waboxapp-laravel - 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. kylewlawrence/waboxapp-laravel

ActiveLibrary[API Development](/categories/api)

kylewlawrence/waboxapp-laravel
==============================

Laravel API for WaboxApp

v1.0.2(3y ago)09MITPHPPHP &gt;=8.2

Since Feb 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/KyleWLawrence/waboxapp-laravel)[ Packagist](https://packagist.org/packages/kylewlawrence/waboxapp-laravel)[ Docs](https://designanddevelop.io)[ RSS](/packages/kylewlawrence-waboxapp-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Laravel WaboxApp
================

[](#laravel-waboxapp)

This package provides integration with the WaboxApp API. It currently only supports sending a chat message.

Installation
------------

[](#installation)

You can install this package via Composer using:

```
composer require kylewlawrence/laravel-waboxapp
```

The facade is automatically installed.

```
WaboxApp::sendChat(['to' => 1234567890, 'text' => 'This is the message']);
```

Configuration
-------------

[](#configuration)

To publish the config file to `app/config/waboxapp-laravel.php` run:

```
php artisan vendor:publish --provider="KyleWLawrence\WaboxApp\Providers\WaboxAppServiceProvider"
```

Set your configuration using **environment variables**, either in your `.env` file or on your server's control panel:

- `WABOXAPP_TOKEN`

The API access token. You can create one at: `https://app.startwaboxapp.com/profile/developer/tokens`

- `WABOXAPP_UID`

Set this to the UID number registered at waboxapp.com in order to not have to include it in every request.

- `WABOXAPP_DRIVER` *(Optional)*

Set this to `null` or `log` to prevent calling the WaboxApp API directly from your environment.

Contributing
------------

[](#contributing)

Pull Requests are always welcome here. I'll catch-up and develop the contribution guidelines soon. For the meantime, just open and issue or create a pull request.

Usage
-----

[](#usage)

### Facade

[](#facade)

The `WaboxApp` facade acts as a wrapper for an instance of the `WaboxApp\Http\HttpClient` class.

### Dependency injection

[](#dependency-injection)

If you'd prefer not to use the facade, you can instead inject `KyleWLawrence\WaboxApp\Services\WaboxAppService` into your class. You can then use all of the same methods on this object as you would on the facade.

```
