Download the PHP package sms77/krayin without Composer
On this page you can find all versions of the php package sms77/krayin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package krayin
Adds the functionality to send SMS via seven.
Prerequisites
- An API Key from seven
- Krayin CRM - tested with v1.2.x
Installation
-
Register the package as service provider by appending an entry in config/app.php.
-
Add the package namespace as PSR-4 key in composer.json file for autoloading.
- Execute these commands to clear the cache and migrate the database:
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
- Navigate to Dashboard -> Configuration -> seven in your Krayin admin panel.
- Enter your API Key and submit by clicking on Save.
Setting an environment variable
-
Define your seven API key in the environment by adding an entry to the .env file in the root of your project.
- Add the following lines to config/services.php:
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 Person
Go to Contacts -> Persons
and click on the seven icon in the actions column.
Send SMS to Organization
Go to Contacts -> Organizations
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. {{name}} resolves to the person's name.
Support
Need help? Feel free to contact us.