Wallogit.com
2017 © Pedro Peláez
Package Laravel for Gammu(SMSD) through a Web interface that allows sending SMS via email.
Package Laravel for Gammu(SMSD) through a Web interface that allows sending SMS via email., (*1)
All screenshots at the end of this manual, (*2)
Required: PHP + PHP-IMAP
Locale: EN,RU, (*3)
1) Install Gammu
sudo apt-get install gammu, (*4)
2) Install Gammu-SMSD
sudo apt-get install gammu-smsd, (*5)
3) Add setting SMSD
nano /etc/gammu-smsdrc
, (*6)
4) Now adjust
, (*7)
[gammu] port = /dev/ttyACM0 connection = at [smsd] service = sql driver = native_mysql host = localhost logfile = /var/log/gammu-smsd user = Your Name password = Your Password pc = localhost database = Your Name DataBase inboxpath = /var/spool/gammu/inbox/ outboxpath = /var/spool/gammu/outbox/ sentsmspath = /var/spool/gammu/sent/ errorsmspath = /var/spool/gammu/error/
5) Restart SMSD service
sudo systemctl restart gammu-smsd.service, (*8)
6) Install Laravel 5.5, (*9)
composer create-project --prefer-dist laravel/laravel blogphp artisan servephp artisan make:auth7) Install Gammu-E2S
composer require dealaxer/gammu-e2s:dev-master, (*10)
8) Add Provider to config\app.php
, (*11)
Dealaxer\GammuE2S\GammuE2SProvider::class,
9) Publish a package
php artisan vendor:publish or php artisan vendor:publish --provider="Dealaxer/GammuE2S/GammuE2SProvider", (*12)
10) Migrate Database
php artisan migrate, (*13)
11) Open access interface, (*14)
chgrp -R www-data storage bootstrap/cachechmod -R ug+rwx storage bootstrap/cache12) You are now ready to use the Web interface!, (*15)
Screenshots of Web interface:, (*16)
, (*17)
, (*18)
, (*19)
, (*20)
, (*21)
, (*22)
, (*23)
, (*24)
, (*25)
, (*26)