Skip to content

Commit 0443dd2

Browse files
iqbalhasandevgithub-actions[bot]
authored andcommitted
Update CHANGELOG
1 parent f4e892a commit 0443dd2

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

CHANGELOG.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,72 @@ All notable changes to `laravel-textify` will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## v1.1.0 - 2025-08-04
9+
10+
feat: add Laravel notification channel with comprehensive SMS integration
11+
12+
🔔 MAJOR FEATURE: Laravel Notifications Integration
13+
14+
This commit introduces complete Laravel notification system integration, allowing developers to send SMS notifications using the 'textify' channel alongside mail, database, and other Laravel notification channels.
15+
16+
### New Features Added:
17+
18+
#### 1. TextifyChannel (src/Channels/TextifyChannel.php)
19+
20+
- Full Laravel notification channel implementation
21+
- Smart phone number resolution with 3-tier priority system:
22+
1. routeNotificationForTextify() method (notification context aware)
23+
2. getTextifyPhoneNumber() method (custom business logic)
24+
3. Automatic attribute detection (phone_number, phone, mobile, phn, cell, mobile_number)
25+
26+
- Support for multiple message formats (TextifyMessage object, string, array)
27+
- Provider/driver selection per notification
28+
- Custom sender ID support
29+
- Comprehensive error handling and validation
30+
31+
#### 2. TextifyMessage DTO (src/Notifications/TextifyMessage.php)
32+
33+
- Immutable data structure for SMS notifications
34+
- Fluent API for easy message construction
35+
- Support for message, sender ID, driver/provider, and metadata
36+
- Factory method pattern with TextifyMessage::create()
37+
- Seamless integration with notification channel
38+
39+
#### 3. Service Provider Integration (src/TextifyServiceProvider.php)
40+
41+
- Automatic notification channel registration
42+
- Integration with Laravel's ChannelManager
43+
- No additional configuration required - works out of the box
44+
45+
#### 4. Comprehensive Test Suite (tests/NotificationChannelTest.php)
46+
47+
- 9 test cases covering all notification scenarios
48+
- Phone number resolution priority testing
49+
- Multiple message format validation
50+
- Error handling verification
51+
- Direct channel usage testing
52+
- Edge case coverage
53+
54+
#### 5. Usage Examples (examples/NotificationExamples.php)
55+
56+
- 5 real-world notification examples
57+
- Order notifications, OTP, marketing, emergency alerts
58+
- User model integration examples
59+
- Advanced notification patterns
60+
- Best practices and conventions
61+
62+
#### 6. Enhanced Documentation (README.md)
63+
64+
- Complete Laravel Notifications section with table of contents
65+
- Step-by-step setup guide
66+
- Phone number resolution methods documentation
67+
- Message format examples
68+
- Event integration patterns
69+
- Advanced usage scenarios
70+
- Configuration examples
71+
72+
**Full Changelog**: https://github.com/DevWizardHQ/laravel-textify/compare/v1.0.1...v1.1.0
73+
874
## V1.0.1 - 2025-08-03
975

1076
### 🐛 Bug Fixes

0 commit comments

Comments
 (0)