Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (39) | Download .zip | Reputation | Support forum | Blog (1) | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2023-09-20 (2 days ago) | Not yet rated by the users | Total: 14 This week: 14 | All time: 11,082 This week: 10 |
Version | License | PHP version | Categories | |||
laravel-local-mailer 1.0 | MIT/X Consortium ... | 8 | Email, Debug, Logging, Testing, PHP 8 |
Description | Author Andey Iatsenko Contributor | |
This package can send email messages to logs that can be viewed. |
Each developer needs to check the sending of email messages during development. Most of them have their own ways - usage gmail, Mailtrap, laravel logs, etc.
This solution will create its own mail transport, saving emails as daily logs, with the ability to view!
The package can be installed via composer:
composer require yzen.dev/laravel-local-mailer
In the config config/mail.php add a new transport:
return [
//...
'mailers' => [
//...
'local-mailer' => [
'transport' => 'local-mailer'
],
]
]
Now you can include this transport in the env:
MAIL_MAILER=local-mailer
The page for viewing is available at `{HOST}/local-mailer
`.
Here you can view the log for any date. For each log, the full email will be displayed - the title, to, contents of the letter (html page), attached files, etc.
Files |
File | Role | Description | ||
---|---|---|---|---|
.github (1 directory) | ||||
src (6 files, 5 directories) | ||||
tests (1 file, 3 directories) | ||||
.editorconfig | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
phpcs.xml | Data | Auxiliary data | ||
phpstan.neon | Data | Auxiliary data | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files | / | .github | / | workflows |
File | Role | Description |
---|---|---|
code-analyze.yml | Data | Auxiliary data |
tests.yml | Data | Auxiliary data |
Files | / | src |
File | Role | Description | ||
---|---|---|---|---|
config (1 file) | ||||
Contract (2 files) | ||||
Http (2 directories) | ||||
Parser (2 files) | ||||
views (4 files, 1 directory) | ||||
Filesystem.php | Class | Class source | ||
LocalMailerService.php | Class | Class source | ||
LocalMailerTransport.php | Class | Class source | ||
MailerLogger.php | Class | Class source | ||
RouteServiceProvider.php | Class | Class source | ||
ServiceProvider.php | Class | Class source |
Files | / | src | / | Contract |
File | Role | Description |
---|---|---|
FilesystemContract.php | Class | Class source |
MailLoggerContract.php | Class | Class source |
Files | / | src | / | Http | / | Controllers |
File | Role | Description |
---|---|---|
LocalMailerController.php | Class | Class source |
LocalMailerResourceController.php | Class | Class source |
Files | / | src | / | Parser |
File | Role | Description |
---|---|---|
Mail.php | Class | Class source |
MailParser.php | Class | Class source |
Files | / | src | / | views |
File | Role | Description | ||
---|---|---|---|---|
css (1 file) | ||||
dashboard.blade.php | Aux. | Auxiliary script | ||
mails.blade.php | Aux. | Auxiliary script | ||
not-found.blade.php | Aux. | Auxiliary script | ||
_template.blade.php | Aux. | Auxiliary script |
Files | / | tests |
File | Role | Description | ||
---|---|---|---|---|
E2E (2 directories) | ||||
Feature (2 files) | ||||
Mails (3 files) | ||||
TestCase.php | Class | Class source |
Files | / | tests | / | E2E |
File | Role | Description | ||
---|---|---|---|---|
LocalMailerController (4 files) | ||||
LocalMailerResourceController (1 file) |
Files | / | tests | / | E2E | / | LocalMailerController |
File | Role | Description |
---|---|---|
DownloadLogTest.php | Class | Class source |
IndexTest.php | Class | Class source |
RemoveLogTest.php | Class | Class source |
ShowByDateTest.php | Class | Class source |
Files | / | tests | / | E2E | / | LocalMailerResourceController |
File | Role | Description |
---|---|---|
IndexTest.php | Class | Class source |
Files | / | tests | / | Feature |
File | Role | Description |
---|---|---|
SendAttachedFilesTest.php | Class | Class source |
TransportTest.php | Class | Class source |
Files | / | tests | / | Mails |
File | Role | Description |
---|---|---|
example.txt | Data | Example message |
TextMailTest.php | Class | Class source |
TextMailWithAttachedFilesTest.php | Class | Class source |
laravel-local-mailer-2023-09-20.zip 55KB | |
laravel-local-mailer-2023-09-20.tar.gz 43KB | |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.