Skip to content

Commit 78008e4

Browse files
authored
2.x: Update namespaces (#50)
* Update namespaces * wip * wip * wip * wip * wip * wip * wip * wip * Remove deprecated config vlaue * Drop PHP8.1 / Laravel 10 support
1 parent 0d3827c commit 78008e4

78 files changed

Lines changed: 226 additions & 223 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Ask a question
4-
url: https://github.com/vormkracht10/laravel-mails/discussions/new?category=q-a
4+
url: https://github.com/backstagephp/laravel-mails/discussions/new?category=q-a
55
about: Ask the community for help
66
- name: Request a feature
7-
url: https://github.com/vormkracht10/laravel-mails/discussions/new?category=ideas
7+
url: https://github.com/backstagephp/laravel-mails/discussions/new?category=ideas
88
about: Share ideas for new features
99
- name: Report a security issue
10-
url: https://github.com/vormkracht10/laravel-mails/security/policy
10+
url: https://github.com/backstagephp/laravel-mails/security/policy
1111
about: Learn how to notify us for sensitive bugs

.github/workflows/phpstan.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,20 @@ jobs:
1010
phpstan:
1111
name: phpstan
1212
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: true
15+
matrix:
16+
php: [8.1, 8.2]
17+
18+
name: PHPStan - PHP ${{ matrix.php }}
19+
1320
steps:
1421
- uses: actions/checkout@v3
1522

1623
- name: Setup PHP
1724
uses: shivammathur/setup-php@v2
1825
with:
19-
php-version: '8.1'
26+
php-version: ${{ matrix.php }}
2027
coverage: none
2128

2229
- name: Install composer dependencies

.github/workflows/run-tests.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,16 @@ jobs:
1313
fail-fast: true
1414
matrix:
1515
os: [ubuntu-latest, windows-latest]
16-
php: [8.1, 8.2]
17-
laravel: [10.*, 11.*]
16+
php: [8.2]
17+
laravel: [11.*, 12.*]
1818
stability: [prefer-lowest, prefer-stable]
1919
include:
20-
- laravel: 10.*
21-
testbench: ^8.2.0
22-
carbon: ^2.67
2320
- laravel: 11.*
2421
testbench: ^9.2.0
2522
carbon: ^2.72.2
26-
exclude:
27-
- laravel: 11.*
28-
php: 8.1
23+
- laravel: 12.*
24+
testbench: ^10.0.0
25+
carbon: ^3.0.0
2926

3027
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
3128

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Keep track of all events on sent emails in Laravel and get notified when something is wrong
22

3-
[![Total Downloads](https://img.shields.io/packagist/dt/vormkracht10/laravel-mails.svg?style=flat-square)](https://packagist.org/packages/vormkracht10/laravel-mails)
4-
[![Tests](https://github.com/vormkracht10/laravel-mails/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/vormkracht10/laravel-mails/actions/workflows/run-tests.yml)
5-
[![PHPStan](https://github.com/vormkracht10/laravel-mails/actions/workflows/phpstan.yml/badge.svg?branch=main)](https://github.com/vormkracht10/laravel-mails/actions/workflows/phpstan.yml)
6-
![GitHub release (latest by date)](https://img.shields.io/github/v/release/vormkracht10/laravel-mails)
7-
![Packagist PHP Version Support](https://img.shields.io/packagist/php-v/vormkracht10/laravel-mails)
8-
[![Latest Version on Packagist](https://img.shields.io/packagist/v/vormkracht10/laravel-mails.svg?style=flat-square)](https://packagist.org/packages/vormkracht10/laravel-mails)
3+
[![Total Downloads](https://img.shields.io/packagist/dt/backstagephp/laravel-mails.svg?style=flat-square)](https://packagist.org/packages/backstagephp/laravel-mails)
4+
[![Tests](https://github.com/backstagephp/laravel-mails/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/backstagephp/laravel-mails/actions/workflows/run-tests.yml)
5+
[![PHPStan](https://github.com/backstagephp/laravel-mails/actions/workflows/phpstan.yml/badge.svg?branch=main)](https://github.com/backstagephp/laravel-mails/actions/workflows/phpstan.yml)
6+
![GitHub release (latest by date)](https://img.shields.io/github/v/release/backstagephp/laravel-mails)
7+
![Packagist PHP Version Support](https://img.shields.io/packagist/php-v/backstagephp/laravel-mails)
8+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/backstagephp/laravel-mails.svg?style=flat-square)](https://packagist.org/packages/backstagephp/laravel-mails)
99

10-
## Nice to meet you, we're [Vormkracht10](https://vormkracht10.nl)
10+
## Nice to meet you, we're [Backstage](https://backstagephp.com)
1111

1212
Hi! We are a web development agency from Nijmegen in the Netherlands and we use Laravel for everything: advanced websites with a lot of bells and whitles and large web applications.
1313

@@ -31,27 +31,27 @@ Laravel Mails can collect everything you might want to track about the mails tha
3131
- Get quickly and automatically notified when email hard/soft bounces or the bouncerate goes too high
3232
- Prune all logged emails periodically to keep the database nice and slim
3333
- Resend logged emails to another recipient
34-
- View all sent emails in the browser using complementary package [Filament Mails](https://github.com/vormkracht10/filament-mails)
34+
- View all sent emails in the browser using complementary package [Filament Mails](https://github.com/backstagephp/filament-mails)
3535

3636
## Upcoming features
3737

3838
- We can write drivers for popular email service providers like Resend, SendGrid, Amazon SES and Mailtrap.
3939
- Relate emails being send in Laravel directly to Eloquent models, for example the order confirmation email attached to an Order model.
4040

41-
## Looking for a UI? We've got your back: [Filament Mails](https://github.com/vormkracht10/filament-mails)
41+
## Looking for a UI? We've got your back: [Filament Mails](https://github.com/backstagephp/filament-mails)
4242

43-
We created a Laravel [Filament](https://filamentphp.com) plugin called [Filament Mails](https://github.com/vormkracht10/filament-mails) to easily view all data collected by this Laravel Mails package.
43+
We created a Laravel [Filament](https://filamentphp.com) plugin called [Filament Mails](https://github.com/backstagephp/filament-mails) to easily view all data collected by this Laravel Mails package.
4444

4545
It can show all information about the emails and events in a beautiful UI:
4646

47-
![Filament Mails](https://raw.githubusercontent.com/vormkracht10/filament-mails/main/docs/mails-list.png)
47+
![Filament Mails](https://raw.githubusercontent.com/backstagephp/filament-mails/main/docs/mails-list.png)
4848

4949
## Installation
5050

5151
First install the package via composer:
5252

5353
```bash
54-
composer require vormkracht10/laravel-mails
54+
composer require backstage/laravel-mails
5555
```
5656

5757
Then you can publish and run the migrations with:
@@ -251,17 +251,17 @@ When you send emails within Laravel using the `Mail` Facade or using a `Mailable
251251
Depending on the mail provider, we send these events comming in from the webhooks of the email service provider.
252252

253253
```php
254-
Vormkracht10\Mails\Events\MailAccepted::class,
255-
Vormkracht10\Mails\Events\MailClicked::class,
256-
Vormkracht10\Mails\Events\MailComplained::class,
257-
Vormkracht10\Mails\Events\MailDelivered::class,
258-
Vormkracht10\Mails\Events\MailEvent::class,
259-
Vormkracht10\Mails\Events\MailEventLogged::class,
260-
Vormkracht10\Mails\Events\MailHardBounced::class,
261-
Vormkracht10\Mails\Events\MailOpened::class,
262-
Vormkracht10\Mails\Events\MailResent::class,
263-
Vormkracht10\Mails\Events\MailSoftBounced::class,
264-
Vormkracht10\Mails\Events\MailUnsubscribed::class,
254+
Backstage\Mails\Events\MailAccepted::class,
255+
Backstage\Mails\Events\MailClicked::class,
256+
Backstage\Mails\Events\MailComplained::class,
257+
Backstage\Mails\Events\MailDelivered::class,
258+
Backstage\Mails\Events\MailEvent::class,
259+
Backstage\Mails\Events\MailEventLogged::class,
260+
Backstage\Mails\Events\MailHardBounced::class,
261+
Backstage\Mails\Events\MailOpened::class,
262+
Backstage\Mails\Events\MailResent::class,
263+
Backstage\Mails\Events\MailSoftBounced::class,
264+
Backstage\Mails\Events\MailUnsubscribed::class,
265265
```
266266

267267
## Testing

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "vormkracht10/laravel-mails",
2+
"name": "backstagephp/laravel-mails",
33
"description": "Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.",
44
"keywords": [
5-
"vormkracht10",
5+
"backstagephp",
66
"laravel",
77
"laravel-mails"
88
],
9-
"homepage": "https://github.com/vormkracht10/laravel-mails",
9+
"homepage": "https://github.com/backstagephp/laravel-mails",
1010
"license": "MIT",
1111
"authors": [
1212
{
@@ -16,7 +16,7 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^8.1",
19+
"php": "^8.2",
2020
"illuminate/contracts": "^10.0 || ^11.0 || ^12.0",
2121
"laravel/helpers": "^1.7.0",
2222
"spatie/laravel-package-tools": "^1.15.0"
@@ -38,13 +38,13 @@
3838
},
3939
"autoload": {
4040
"psr-4": {
41-
"Vormkracht10\\Mails\\": "src",
42-
"Vormkracht10\\Mails\\Database\\Factories\\": "database/factories"
41+
"Backstage\\Mails\\": "src",
42+
"Backstage\\Mails\\Database\\Factories\\": "database/factories"
4343
}
4444
},
4545
"autoload-dev": {
4646
"psr-4": {
47-
"Vormkracht10\\Mails\\Tests\\": "tests"
47+
"Backstage\\Mails\\Tests\\": "tests"
4848
},
4949
"files": [
5050
"helpers.php"
@@ -68,7 +68,7 @@
6868
"extra": {
6969
"laravel": {
7070
"providers": [
71-
"Vormkracht10\\Mails\\MailsServiceProvider"
71+
"Backstage\\Mails\\MailsServiceProvider"
7272
]
7373
}
7474
},

config/mails.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
use Vormkracht10\Mails\Models\Mail;
4-
use Vormkracht10\Mails\Models\MailAttachment;
5-
use Vormkracht10\Mails\Models\MailEvent;
3+
use Backstage\Mails\Models\Mail;
4+
use Backstage\Mails\Models\MailAttachment;
5+
use Backstage\Mails\Models\MailEvent;
66

77
return [
88

database/factories/MailAttachmentFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace Vormkracht10\Mails\Database\Factories;
3+
namespace Backstage\Mails\Database\Factories;
44

55
use Illuminate\Database\Eloquent\Factories\Factory;
6-
use Vormkracht10\Mails\Models\MailAttachment;
6+
use Backstage\Mails\Models\MailAttachment;
77

88
class MailAttachmentFactory extends Factory
99
{

database/factories/MailEventFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace Vormkracht10\Mails\Database\Factories;
3+
namespace Backstage\Mails\Database\Factories;
44

55
use Illuminate\Database\Eloquent\Factories\Factory;
6-
use Vormkracht10\Mails\Models\MailEvent;
6+
use Backstage\Mails\Models\MailEvent;
77

88
class MailEventFactory extends Factory
99
{

database/factories/MailFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace Vormkracht10\Mails\Database\Factories;
3+
namespace Backstage\Mails\Database\Factories;
44

55
use Illuminate\Database\Eloquent\Factories\Factory;
6-
use Vormkracht10\Mails\Models\Mail;
6+
use Backstage\Mails\Models\Mail;
77

88
class MailFactory extends Factory
99
{

helpers.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
namespace Vormkracht10\Mails;
3+
namespace Backstage\Mails;
44

5-
use Vormkracht10\Mails\Shared\Terminal;
5+
use Backstage\Mails\Shared\Terminal;
66

77
if (! function_exists('console')) {
88
function console(): Terminal

0 commit comments

Comments
 (0)