Mika56 / PHP-SPF-Check

Simple library to check an IP address against a domain's SPF record
MIT License
44 stars 25 forks source link

Provide example SPF Cache code #39

Closed xrobau closed 2 years ago

xrobau commented 4 years ago

This is some example Laravel code that can be used to cache lookups. This addresses #8 but would probably be better split out into a specific laravel package.

coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 85.915% when pulling 4c88632ddc6610bef91d8e2d3a9f2ce91c161a27 on xrobau:master into 25e2ac1115e2a45ed5d9796f87dcc15dacccb160 on Mika56:master.

Mika56 commented 2 years ago

Hi! I'm no expert in Laravel, but I'm not certain using a database cache is better. DNS queries are fast, and should already be cached by your OS and/or ISP.

If you still want to offer this to the community, please indeed create a new package. You can simply require mika56/spfcheck in your package.