sms77/bagisto

This package is abandoned and no longer maintained. The author suggests using the seven.io/bagisto package instead.

v1.2.0 2022-09-08 09:32 UTC

This package is auto-updated.

Last update: 2023-12-15 13:17:07 UTC


README

68747470733a2f2f7777772e736576656e2e696f2f77702d636f6e74656e742f75706c6f6164732f4c6f676f2e737667

Adds the functionality to send SMS via seven.

Prerequisites

Installation

  1. Retrieve the package via composer by running composer require seven.io/bagisto

  2. Register the package as service provider by appending an entry in config/app.php.

<?php
return [
    // ...
    'providers' => [
        // ...
        Seven\Bagisto\Providers\SevenServiceProvider::class,
    ],
        // ...
];
  1. Execute these commands to clear the cache and migrate the database:
php artisan cache:clear && php artisan migrate

Setup

Before you can start sending SMS you will need to submit your seven API key. This can be in two ways:

Configuration via administration panel

  1. Navigate to Dashboard -> Configure -> seven in your Bagisto admin panel.
  2. Enter your API Key and submit by clicking on Save.

Setting an environment variable

  1. Define your seven API key in the environment by adding an entry to the .env file in the root of your project.
SEVEN_API_KEY=YourSuperSecretApiKeyFromSeven
  1. Add the following lines to config/services.php:
return [
    // ...
    'seven' => [
        'api_key' => env('SEVEN_API_KEY'), // must match the key from .env file added in the previous step
    ],
];

Clear the cache and cache the configuration by executing php artisan cache:clear && php artisan config:cache.

Please note: Setting the API key via configuration takes precedence over defining it as an environment variable. Also, the value from the environment won't get shown in the configuration form due to technical limitations.

Usage

Send SMS to Customer

Go to Customers and click on the seven icon in the actions column.

Send SMS to Customer Group

Go to Groups and click on the seven icon in the actions column.

You can use property placeholders which resolve to the person's property as long as it is defined, e.g. {{first_name}} {{last_name}} resolves to the person's first and last name.

Support

Need help? Feel free to contact us.

MIT