Thank you for considering contributing to the Lettr PHP SDK!
- Fork and clone the repository
git clone https://github.com/TOPOL-io/lettr-php.git
cd lettr-php- Install dependencies
composer install- Create a new branch
git checkout -b feature/your-feature-nameThis project uses Laravel Pint for code formatting.
# Check code style
composer lint -- --test
# Fix code style
composer lintThis project uses PHPStan at level 8.
composer analyseThis project uses Pest for testing.
# Run tests
composer test
# Run specific test file
./vendor/bin/pest tests/Unit/LettrTest.php- Ensure all tests pass
composer lint -- --test
composer analyse
composer test-
Update documentation if needed
-
Create a pull request with a clear description of changes
-
Wait for review
Use clear, descriptive commit messages:
feat: add webhook retry configurationfix: handle empty response bodydocs: update installation instructionstest: add email builder testsrefactor: simplify domain verification logic
When reporting issues, please include:
- PHP version
- SDK version
- Minimal code example to reproduce
- Expected vs actual behavior
- Error messages (if any)
If you discover a security vulnerability, please email security@lettr.com instead of using the issue tracker.