StockifyWatcher is an automated monitoring tool designed to track inventory changes on Shopify stores. It's perfect for those who need to keep an eye on store activities such as new product listings, price changes, restocking, and out-of-stock notifications, without requiring access to the store's API.
- New Product Alerts: Get notified when new products are added.
- Price Change Alerts: Receive updates when prices change.
- Restock Alerts: Be informed when products are restocked.
- Out of Stock Alerts: Know when products go out of stock.
- WhatsApp Notifications: Receive alerts directly on your WhatsApp, with SMS option available.
- PHP environment.
- MySQL database.
- Composer for PHP dependency management.
StockifyWatcher uses Twilio for messaging services. To install Twilio PHP Client, run:
composer require twilio/sdk
- Rename
Config.php.sample
toConfig.php
. - Update the database connection parameters (
$host
,$dbname
,$username
,$password
). - Configure Twilio parameters (
$sid
,$token
,$from
, and$to
for your Twilio and WhatsApp settings).
Use add_shop.php
to add a new Shopify store to monitor:
php add_shop.php "Shop Name" "Shop URL"
Run check_shop.php
to start monitoring the Shopify stores:
php check_shop.php
To automatically check for updates every hour, add the following line to your crontab (with crontab -e
command):
0 * * * * /usr/bin/php /path/to/your/check_shop.php >> /var/log/stockifywatcher.log 2>&1
- Ensure proper permissions for the script to access the log file.
- Modify the notification mechanism in Config.php if you prefer SMS alerts over WhatsApp.
Contributions, issues, and feature requests are welcome. Feel free to check issues page if you want to contribute.
Distributed under the MIT License. See LICENSE
for more information.
Happy Monitoring with StockifyWatcher!