webklex/php-imap
PHP-IMAP is a pure-PHP IMAP client wrapper that works without the php-imap extension, supporting IMAP IDLE and OAuth auth. Optionally use php-imap for better decoding, edge cases, and legacy POP3 support.
webklex/laravel-imap wrapper.Adopt if:
php-imap extension (common in shared hosting or Docker).legacy-imap mode).Look elsewhere if:
symfony/mailer or raw IMAP extensions).nodemailer).For Executives: "This package lets us build email-driven features—like customer support automation or real-time notifications—without relying on server-specific PHP extensions. It’s like having a ‘plug-and-play’ IMAP toolkit that works across any hosting environment, reduces dev time by 30%, and supports modern auth (OAuth2) and live updates. For example, we could use it to auto-sync Gmail tickets into our CRM or send transactional emails via IMAP instead of SMTP. It’s MIT-licensed, so no vendor lock-in, and integrates cleanly with Laravel."
For Engineering: *"Pros:
php-imap extension needed: Works in headless/Docker environments.webklex/laravel-imap) adds Eloquent-like query methods.Trade-offs:
legacy-imap mode for edge cases).php-imap extension for performance-critical paths.Quick Start:
composer require webklex/php-imap
Then leverage the Laravel wrapper for Eloquent-style queries:
$messages = Message::in('INBOX')->where('unread', true)->get();
Alternatives: If you need bulk processing, pair with symfony/mailer; for Node.js, consider nodemailer."*
How can I help you explore Laravel packages today?