← Projects

Laravel Sift

v0.4.0

Tell a business email from a Gmail address.

composer require mischasigtermans/laravel-sift

What it does

  • A domain, or null

    Sift::domain('user@company.com') returns company.com. A Gmail, Yahoo or Outlook address returns null, unless you ask for public domains too.

  • A business-email rule

    Sift::rule(), or new BusinessEmail, in a form request rejects personal addresses with 'The email must be a business email address.'

  • Batches and stats

    Sift::domains() returns the unique business domains in a list of emails. Sift::stats() gives the total, the business and personal split, the business rate and the top domains.

  • A provider list kept current for you

    The list of public-provider domains lives in the package, so an update brings new ones. Add your own with additional_domains, or let one through with exclude_default_domains.

Install Laravel Sift.

Hi, I'm Mischa. I've been shipping products and building ventures for over a decade. First exit at 25, second at 30. Now Partner & CPO at Ryde Ventures, an AI venture studio in Amsterdam. Currently shipping Stagent, TAP and Steddle. I write about what I learn along the way. More about me.

You might also enjoy: Every setting in my Claude Code config, explained.

← Projects