sparkworldke/nativephp-sms-reader-bridge
NativePHP SMS Reader Bridge integrates NativePHP with Laravel to let your app read SMS messages from the device inbox. It provides a straightforward API for querying messages and building SMS-powered features such as verification, notifications, and message-based workflows.
SmsReceived event plus JS bridge and TypeScript definitions support near-real-time product flows such as auto-verifying a one-time code, enriching a CRM record, or triggering an in-app action when a message arrives.inbox, sent, draft, outbox, queued, failed, spam), sender filtering, since, and limit parameters map directly to product needs—e.g., “only bank senders,” “only messages after onboarding,” or “inbox only for OTP.” Multi-part SMS reconstruction matters for long transactional messages.Consider it when:
SmsReader::getMessages(), getMessagesForSenders()) and an incoming-SMS event rather than a custom native module.READ_SMS / RECEIVE_SMS) with clear consent UX and a privacy review before collecting or transmitting message content.Look elsewhere when:
READ_SMS/RECEIVE_SMS. Google restricts these permissions heavily, and policy rejection is a product-level risk, not just an engineering one.composer require works normally.For executives: This package gives our Android app a fast way to read and react to SMS—useful for OTP verification, transaction tracking, and customer-response workflows—without building a native Android bridge from scratch. It is a first release of a fork, so I recommend funding a short proof of concept, not a broad production commitment yet. The main risks are Google Play’s restrictions on SMS permissions, user privacy and consent, and long-term maintenance of a single-maintainer package. The decision to approve should be tied to a specific Android-only use case and a policy/compliance check.
For engineering: The package exposes a Laravel-friendly API for querying messages with sender, limit, since, and folder filters, plus a SmsReceived event, JavaScript bridge, and TypeScript definitions. It handles Android runtime permissions for READ_SMS/RECEIVE_SMS and reconstructs multi-part SMS. It targets Laravel 11–13 and NativePHP Mobile 3–4. Key engineering tasks before adoption: verify Packagist availability, pin the version, review the fork diff against upstream atendwa/nativephp-sms-reader, test permission-denied and empty-inbox states, validate multi-part reconstruction with real carrier messages, and define a fallback if the package is abandoned.
Recommendation: Treat v1.0.0 as a promising POC candidate for Android SMS workflows. Proceed to a time-boxed spike with a privacy and Play-policy review; defer production dependency until installation, maintenance, and compliance risks are resolved.
How can I help you explore Laravel packages today?