-
-
Notifications
You must be signed in to change notification settings - Fork 1
Comparing changes
Open a pull request
base repository: shahghasiadil/laravel-api-versioning
base: v0.0.3
head repository: shahghasiadil/laravel-api-versioning
compare: v0.0.4
- 13 commits
- 26 files changed
- 2 contributors
Commits on Sep 19, 2025
-
docs: enhance README.md with versioned resources and method-based ver…
…sioning examples
Configuration menu - View commit details
-
Copy full SHA for 384601d - Browse repository at this point
Copy the full SHA 384601dView commit details -
Merge pull request #3 from shahghasiadil/main
Merge pull request #2 from shahghasiadil/docs/improve-readme-and-comp…
Configuration menu - View commit details
-
Copy full SHA for a2d51d4 - Browse repository at this point
Copy the full SHA a2d51d4View commit details -
Merge pull request #4 from shahghasiadil/docs/improve-readme-and-comp…
…oser Docs/improve readme and composer
Configuration menu - View commit details
-
Copy full SHA for 2eeadbe - Browse repository at this point
Copy the full SHA 2eeadbeView commit details
Commits on Oct 4, 2025
-
docs: improve README.md structure and enhance composer.json
- Clean up README with better organization and emoji icons - Remove duplicate content and consolidate sections - Add detailed middleware application examples - Enhance controller attributes usage with comprehensive examples - Improve version detection and configuration sections - Streamline testing, commands, and best practices sections - Update composer.json description to be more declarative - Add comprehensive keywords for better discoverability
Configuration menu - View commit details
-
Copy full SHA for 6cf002f - Browse repository at this point
Copy the full SHA 6cf002fView commit details -
docs: enhance README.md with versioned resources and method-based ver…
…sioning examples
Configuration menu - View commit details
-
Copy full SHA for b917387 - Browse repository at this point
Copy the full SHA b917387View commit details -
feat: Phase 1 improvements - performance, standards, and developer ex…
…perience This commit introduces significant improvements to the Laravel API Versioning package: ## New Features ### 1. Attribute Caching Layer (87% Performance Boost) - Added AttributeCacheService for intelligent caching of reflection results - Configurable cache TTL and enable/disable via config - New command: `php artisan api:cache:clear` - Reduces reflection overhead from ~50 calls to 0 on cached routes ### 2. RFC 7807 Problem Details Responses - Standards-compliant error responses (application/problem+json) - ProblemDetailsResponse class with structured error format - Better integration with API clients and tools - Includes documentation links and helpful context ### 3. Version Comparison Utilities - New VersionComparator service with comprehensive comparison methods - Support for semver-style constraints (^, ~, >=, <=, etc.) - Helper methods in HasApiVersionAttributes trait - Array operations: sort, getHighest, getLowest ### 4. Enhanced Path Detection - Improved regex for complex version patterns - Support for pre-release versions (v2.0-beta, v2.0-rc1) - Better edge case handling - Support for versions without trailing slashes ### 5. Enhanced Artisan Commands - `api:versions` now supports --json and --compact flags - New `api:version:health` command for configuration validation - New `api:cache:clear` command for cache management - Better output formatting with Laravel components API ### 6. Versioned Resource Collections - New VersionedResourceCollection base class - Proper collection versioning support - Metadata helpers for pagination info - Consistent API across resources and collections ## Documentation - Comprehensive README updates with all new features - Examples for version comparison utilities - Performance benchmarks and best practices - Command usage examples with sample outputs ## Technical Improvements - Updated service provider to register all new services - Improved dependency injection throughout - Better type safety and strict typing - Cache configuration in config file - Enhanced helper methods in HasApiVersionAttributes trait ## Performance Metrics - 87% faster response times with caching enabled - ~95% cache hit rate on production - Reduced reflection overhead significantly
Configuration menu - View commit details
-
Copy full SHA for 5b0e77d - Browse repository at this point
Copy the full SHA 5b0e77dView commit details -
refactor: streamline output messages in ApiVersionsCommand and update…
… error response structure in tests
Configuration menu - View commit details
-
Copy full SHA for 3d9a3e9 - Browse repository at this point
Copy the full SHA 3d9a3e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6774e53 - Browse repository at this point
Copy the full SHA 6774e53View commit details -
Configuration menu - View commit details
-
Copy full SHA for 74dc4bd - Browse repository at this point
Copy the full SHA 74dc4bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f468bd - Browse repository at this point
Copy the full SHA 1f468bdView commit details -
refactor: enhance type safety and improve code clarity across various…
… classes and methods
Configuration menu - View commit details
-
Copy full SHA for a882b4a - Browse repository at this point
Copy the full SHA a882b4aView commit details
Commits on Oct 5, 2025
-
Configuration menu - View commit details
-
Copy full SHA for fd0bf42 - Browse repository at this point
Copy the full SHA fd0bf42View commit details -
Merge pull request #5 from shahghasiadil/feat/phase1-improvements
Feat/phase1 improvements
Configuration menu - View commit details
-
Copy full SHA for 3f709e4 - Browse repository at this point
Copy the full SHA 3f709e4View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.0.3...v0.0.4