Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 32 | All time: 11,078 This week: 74 |
Version | License | PHP version | Categories | |||
laravel-local-mailer 1.0 | MIT/X Consortium ... | 8 | Email, Debug, Logging, Testing, PHP 8 |
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 (39) |
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 (39) | / | .github | / | workflows |
File | Role | Description |
---|---|---|
code-analyze.yml | Data | Auxiliary data |
tests.yml | Data | Auxiliary data |
Files (39) | / | 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 (39) | / | src | / | Contract |
File | Role | Description |
---|---|---|
FilesystemContract.php | Class | Class source |
MailLoggerContract.php | Class | Class source |
Files (39) | / | src | / | Http | / | Controllers |
File | Role | Description |
---|---|---|
LocalMailerController.php | Class | Class source |
LocalMailerResourceController.php | Class | Class source |
Files (39) | / | src | / | Parser |
File | Role | Description |
---|---|---|
Mail.php | Class | Class source |
MailParser.php | Class | Class source |
Files (39) | / | 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 (39) | / | tests |
File | Role | Description | ||
---|---|---|---|---|
E2E (2 directories) | ||||
Feature (2 files) | ||||
Mails (3 files) | ||||
TestCase.php | Class | Class source |
Files (39) | / | tests | / | E2E |
File | Role | Description | ||
---|---|---|---|---|
LocalMailerController (4 files) | ||||
LocalMailerResourceController (1 file) |
Files (39) | / | 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 (39) | / | tests | / | E2E | / | LocalMailerResourceController |
File | Role | Description |
---|---|---|
IndexTest.php | Class | Class source |
Files (39) | / | tests | / | Feature |
File | Role | Description |
---|---|---|
SendAttachedFilesTest.php | Class | Class source |
TransportTest.php | Class | Class source |
Files (39) | / | tests | / | Mails |
File | Role | Description |
---|---|---|
example.txt | Data | Example message |
TextMailTest.php | Class | Class source |
TextMailWithAttachedFilesTest.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
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.