Production one-time-code SMS for your website — generated, sent and verified by the platform's own script, through any HTTP sending gateway. Runs inside the same install; no extra service.
to + message).
Numbers rented on this platform are for receiving; OTP sending uses your own sender gateway.export ZALAF_SMS_SEND_URL='https://your-gateway/sms?user=USER&pass=PASS&to={to}&msg={text}'
export ZALAF_SMS_SEND_AUTH='Basic xxxx' # optional
export ZALAF_OTP_TTL=600 # seconds a code stays valid
export ZALAF_OTP_COOLDOWN=60 # min gap between resends
Placeholders: {to} {text} {code} {mins}.
POST JSON instead? add ZALAF_SMS_SEND_METHOD=POST and
ZALAF_SMS_SEND_BODY='{"to":"{to}","message":"{text}"}'.python3 scripts/run.py otp setup # shows resolved config python3 scripts/run.py otp send --to +9639XXXXXXXX --dry-run python3 scripts/run.py otp send --to +9639XXXXXXXX python3 scripts/run.py otp verify --to +9639XXXXXXXX --code 123456
// PHP
exec('python3 scripts/run.py otp send --to ' . escapeshellarg($phone));
exec('python3 scripts/run.py otp verify --to ' . escapeshellarg($phone)
. ' --code ' . escapeshellarg($code), $out, $rc); // $rc === 0 → verified
In-process (Python/Flask side): import sms_otp; sms_otp.send(phone, tag="signup")databases/otp.db — never in the main DB, never in logs.--lang en, or ar).Return to the home page · API documentation
رموز لمية مرة واحدة لموقعك — تُولَّد وتُرسل وتُتحقَّق بها سكريبت المنصة نفسه عبر أي بوابة إرسال HTTP. يعمل داخل نفس التنصيب دون خدمة إضافية.
export ZALAF_SMS_SEND_URL='https://your-gateway/sms?user=USER&pass=PASS&to={to}&msg={text}'
export ZALAF_SMS_SEND_AUTH='Basic xxxx' # اختياري
export ZALAF_OTP_TTL=600
export ZALAF_OTP_COOLDOWN=60
العناصر القابلة للاستبدال: {to} {text}
{code} {mins}. وللإرسال POST بـJSON أضف
ZALAF_SMS_SEND_METHOD=POST وZALAF_SMS_SEND_BODY='{"to":"{to}","message":"{text}"}'.python3 scripts/run.py otp setup python3 scripts/run.py otp send --to +9639XXXXXXXX --dry-run python3 scripts/run.py otp send --to +9639XXXXXXXX python3 scripts/run.py otp verify --to +9639XXXXXXXX --code 123456
// PHP
exec('python3 scripts/run.py otp send --to ' . escapeshellarg($phone));
exec('python3 scripts/run.py otp verify --to ' . escapeshellarg($phone)
. ' --code ' . escapeshellarg($code), $out, $rc); // $rc === 0 → تم التحققdatabases/otp.db لا تمسحها عمليات التصفير.--lang ar أو en).