asboldyrev / modem-message-sync
A package for synchronizing SMS messages from a modem.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: 8.2.*
- asboldyrev/apprise-notification-sdk: ^1.0
- php-mqtt/client: ^1.8
- phpseclib/phpseclib: ^3.0
- vlucas/phpdotenv: ^5.5
README
ModemMessageSync is a PHP package designed to simplify the synchronization and management of SMS messages obtained from a GSM modem. It provides tools to efficiently handle incoming SMS messages, decode Unicode content, and send notifications through various channels.
Features
- Seamless synchronization of SMS messages from a GSM modem.
- Integration with Apprise for sending notifications.
- Support for sending notifications via MQTT.
Installation
-
Open a terminal and navigate to the directory where you want to create your project.
-
Run the following Composer command to create a new ModemMessageSync project:
composer create-project asboldyrev/modem-message-sync your-project-name
Replace your-project-name with the desired name for your project directory.
-
Change into the newly created project directory:
cd your-project-name
-
Create a .env file in the project root directory. You can use the provided .env.example as a template. Fill in the necessary environment variables such as SSH connection details, Apprise credentials, and other configuration options.
Usage
Follow these steps to use ModemMessageSync:
Run PHP script to initiate the synchronization and management of SMS messages from the GSM modem:
php index.php
Or
- Set up a cron job to automate the synchronization process. Open your crontab configuration by running:
crontab -e
- Add a line to specify the frequency of synchronization, replacing path_to_your_script with the actual path to your PHP script:
* * * * * php /path_to_your_project/index.php
Configuration
You can configure the package by setting the required environment variables in a .env file. Refer to the example .env.example file for the list of variables.
License
ModemMessageSync is open-source software licensed under the MIT License. Feel free to contribute to this project or report any issues you encounter.
© 2023 asboldyrev