Skip to content

v1.1.0

Choose a tag to compare

@ishantoz ishantoz released this 09 Apr 10:08
· 10 commits to main since this release

πŸ“¦ v1.1.0 – Laravel Cache Support & Improvements

✨ New Features

  • Laravel Cache Integration
    Introduced a built-in LaravelCacheDriver class that implements the CacheInterface, allowing seamless integration with Laravel's cache system (file, redis, memcached, etc.).
    βœ… Ideal for applications using Laravel framework to store and reuse JWKS efficiently.

    use UQI\Cognito\Tokens\CognitoTokenVerifier;
    use App\Drivers\LaravelCacheDriver;
    
    $verifier = new CognitoTokenVerifier(
        'us-east-1',
        'us-east-1_aQRUYfYJQ',
        '6c9hs2p1v53bf9ol5m0o0rlfjj',
         new LaravelCacheDriver()
    );

    πŸ›  Improvements

  • Enhanced documentation with clear examples for:

    • Basic usage
    • Error handling
    • Custom and Laravel-based cache implementations
  • Internal refactoring for better modularity and future extensibility.

πŸ“š Developer Experience

  • Improved inline PHPDoc comments for better IDE support and static analysis.
  • Added clear structure to the CacheInterface documentation, aiding in implementing custom cache strategies.

⚠️ Breaking Changes

  • None. Fully backward-compatible with v1.0.x.

Full Changelog: v1.0.0...v1.1.0