diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index f7492c5..570a299 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -23,7 +23,8 @@ jobs: include: - laravel: 10.* testbench: 8.* - carbon: ^2.63 + - laravel: 11.* + testbench: 9.* name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} diff --git a/README.md b/README.md index 7f56103..faba85b 100644 --- a/README.md +++ b/README.md @@ -42,13 +42,24 @@ LaravelEmailSniperLink::getSniperLinkQuick('receiver@gmail.com', 'optional-from- // This will do a more accurate guess by not only checking the ending email address but also the MX record of the email address // if the email address domain is not 1 of the common ones. -// Which is more useful for business emails. But it does make network calls to fetch the MX records so it is slower +// Which is more useful for business emails. But it does make network calls to fetch the MX records, so it is a little slower LaravelEmailSniperLink::getSniperLink('receiver@gmail.com', 'optional-from-email@gmail.com') ``` The `LaravelEmailSniperLink` class has more static methods as well which might be useful for you. -Some helper functions are also available. For now there are 2. `email_sniper_link_quick(string $receiverEmail, ?string $fromEmail = null)` and `email_sniper_link(string $receiverEmail, ?string $fromEmail = null)`. +Some helper functions are also available. For now there are 2. + +```php +// This just do a quick guess based on the ending email address such as gmail.com, outlook.com, icloud.com etc. +email_sniper_link_quick(string $receiverEmail, ?string $fromEmail = null); + +// This will do a more accurate guess by not only checking the ending email address but also the MX record of the email address +// if the email address domain is not 1 of the common ones. +// Which is more useful for business emails. But it does make network calls to fetch the MX records, so it is a little slower +email_sniper_link(string $receiverEmail, ?string $fromEmail = null); + +``` ## Testing diff --git a/composer.json b/composer.json index 9767395..5881acb 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ ], "require": { "php": "^8.1", - "illuminate/contracts": "^10.0", + "illuminate/contracts": "^10.0|^11.0", "mobiledetect/mobiledetectlib": "^4.8", "spatie/laravel-package-tools": "^1.14.0" }, @@ -25,7 +25,7 @@ "laravel/pint": "^1.0", "nunomaduro/collision": "^7.8", "larastan/larastan": "^2.0.1", - "orchestra/testbench": "^8.8", + "orchestra/testbench": "^8.8|^9.0", "pestphp/pest": "^2.20", "pestphp/pest-plugin-arch": "^2.0", "pestphp/pest-plugin-laravel": "^2.0",