Lettr for Laravel follows Semantic Versioning (SemVer).
| Component | When to increment | Example |
|---|---|---|
| MAJOR | Breaking changes (incompatible API changes) | 1.0.0 -> 2.0.0 |
| MINOR | New features (backward compatible) | 1.0.0 -> 1.1.0 |
| PATCH | Bug fixes (backward compatible) | 1.0.0 -> 1.0.1 |
While in 0.x.x:
- Minor version bumps may contain breaking changes (
0.1.0->0.2.0) - Patch versions are always backward compatible (
0.1.0->0.1.1) - This allows API refinement based on real-world usage
Add a new entry to CHANGELOG.md following Keep a Changelog format:
## [0.2.0] - 2024-01-15
### Added
- New feature description
### Changed
- Changed behavior description
### Fixed
- Bug fix description
### Removed
- Removed feature descriptionChangelog categories:
| Category | Description |
|---|---|
| Added | New features |
| Changed | Changes in existing functionality |
| Deprecated | Soon-to-be removed features |
| Removed | Removed features |
| Fixed | Bug fixes |
| Security | Vulnerability fixes |
Tips:
- Write entries from user perspective, not developer perspective
- Link to related issues/PRs when relevant
- Keep descriptions concise but informative
// src/LettrServiceProvider.php
public const VERSION = '0.2.0';git tag -a v0.2.0 -m "Release 0.2.0"
git push origin main --tagsGitHub Actions will automatically:
- Run tests, linting, and static analysis
- Create GitHub Release (if all checks pass)
- Packagist updates via webhook
| Version | Type | Description |
|---|---|---|
0.1.0 |
Initial | First release |
The package will move to 1.0.0 when:
- API is stable and proven in production
- No planned breaking changes
- Full test coverage
- Complete documentation
After 1.0.0, breaking changes only happen in major versions.
# Always installs latest stable
composer require lettr/lettr-laravel
# Specific version
composer require lettr/lettr-laravel:^0.1