Conversation
…mpatible docs - Created comprehensive documentation in /docs folder with proper sidebar_position ordering - Added 7 new documentation files covering all aspects of the library: - Getting Started: Installation and quick start guide - Envelope: Email message configuration - Connection Strings: URI patterns for all mail services - Mailer Factory: Creating and registering mailers - Attachments: Regular attachments and embedded images - Custom Wrappers: Implementing custom mail wrappers - Exceptions: Error handling and exception types - Updated README.md with links to all documentation files - Removed inaccurate references to Mandrill (not present in codebase) - Reorganized README.md structure: - Moved Dependencies section to last position before footer - Simplified content by moving detailed information to docs - Updated Dependencies mermaid to show only byjg dependencies - All docs use Docusaurus markdown features (admonitions, frontmatter, etc.) - sidebar_position follows the same order as links appear in README.md - Documentation accurately reflects the actual codebase in /src
…BF3WuFgoYnGXktSaC docs: Update documentation structure with comprehensive Docusaurus-co…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Version 6.0 - Major Update
Overview
This major release brings significant improvements to the MailWrapper library, including dependency upgrades, enhanced type safety, modernized testing infrastructure, and comprehensive documentation. This version introduces several breaking changes that improve code quality and maintainability.
Major Changes
1. Dependency Upgrades
>=8.1 <8.5)2. Type Safety Enhancements
#[\Override]attributes to overridden methods for better IDE support?ClientInterfaceinstead ofClientInterface $client = null)3. Method Signature Changes
MailerFactory Updates
registerMailer(string $class)now has explicitvoidreturn typecreate()now acceptsUriInterface|stringinstead of juststring, providing more flexibilityWrapper Method Signatures
4. Testing Infrastructure Modernization
Test Class Renaming
BaseWrapperTest→BaseTestWrapperAmazonSesWrapperTest→AmazonSesTestWrapperFakeSenderWrapperTest→FakeSenderTestWrapperMailgunWrapperTest→MailgunTestWrapperPHPMailerWrapperTest→PHPMailerTestWrapperPHPUnit Configuration
convertErrorsToExceptionsattributes with modern equivalentsfailOnWarning,failOnNotice,failOnDeprecation)<filter><whitelist>to<source><include>(new PHPUnit format)5. Documentation Overhaul
Complete restructuring of documentation into dedicated files:
README.md streamlined to focus on overview and links to detailed documentation.
6. CI/CD Improvements
7. Code Quality
.run/directory)testandpsalmBreaking Changes
byjg/convertupgraded to ^6.0byjg/webrequestupgraded to ^6.0MailerFactory::registerMailer()returnsvoidMailerFactory::create()acceptsUriInterface|string-
BaseWrapperTest→BaseTestWrapper-
*WrapperTest→*TestWrapperNon-Breaking Enhancements
#[\Override]attributes (improves IDE experience, no runtime impact)Migration Guide
For Library Users
Update dependencies:
Update your code:
MailerFactory::registerMailer()For Contributors/Developers
Update test dependencies:
Rename test class extensions (if you extended test classes):
BaseWrapperTesttoBaseTestWrapper*WrapperTestto*TestWrapperFix PHPUnit compatibility:
->will($this->returnValue())with->willReturn()voidreturn typeReview Psalm/static analysis:
vendor/bin/psalmto check for type issuesTesting
All existing functionality has been tested with:
Related PRs/Issues
Release Type: Major (6.0)
Backward Compatibility: Breaking changes present (see table above)
Recommended Action: Review breaking changes before upgrading