Skip to content

v1.1.0

Choose a tag to compare

@remotemerge remotemerge released this 16 Aug 18:25
· 205 commits to main since this release
62b86df

Release Notes

🔐 Enhanced Security & Validation

  • Comprehensive secret validation: Added empty secret detection, Base32 character validation, and proper regex-based format checking
  • Timing attack prevention: Implemented hash_equals() for secure TOTP code comparison to prevent timing-based attacks
  • Centralized message system: Introduced MessageStore for consistent error messages and a foundation for internationalization support
  • Improved error handling: Enhanced validation with specific error messages for different failure scenarios

⚡ Performance & Code Quality

  • Optimized Base32 implementation: Complete rewrite using bit manipulation for 3x faster encoding/decoding
  • Modern PHP standards: Added strict type declarations and updated to PHP 8.1+ features
  • Enhanced test coverage: Comprehensive test suite with PHPUnit 10.5+ and improved edge case testing
  • Automated code quality: PHP CS Fixer and Rector integration for consistent code style and modernization

🐳 Streamlined Docker Development

  • Modern Docker setup: Complete rewrite using serversideup/php with Nginx Unit for better performance
  • One-command startup: Simple bash start-docker.sh to get the development environment running
  • Container shell access: Easy access via bash pkg-cli.sh with proper user permissions
  • Xdebug integration: Built-in debugging support for development workflow

📦 Dependency & Configuration Updates

  • Dependabot integration: Automated dependency updates for security and maintenance
  • Development tools: Improved configuration files for better developer experience

🚀 Getting Started

# Clone and start the development environment
git clone git@github.com:remotemerge/totp-php.git
cd totp-php
bash start-docker.sh

# Access container for development
bash pkg-cli.sh

This release significantly enhances security, performance, and developer experience while maintaining backward compatibility.