How cyve/url works
Main Components
a) Core Components:
• Url Class (Central Component)
• Path Handler
• Query Handler
• PSR-7 Integration (indicated by Psr7Trait)
b) Utility Components:
• Array Access Implementation
• Iterator Implementation
• Countable Implementation
Top Layer (Public API):
┌─────────────────────────┐
• Url Class │
• ┘
Middle Layer (Core Components):
┌────────┐ ┌────────┐ ┌──────────┐
• Path │ │ Query │ │Psr7Trait │
• ┘ └────────┘ └──────────┘
Bottom Layer (Utilities):
┌────────────┐ ┌──────────┐ ┌──────────┐
• ArrayAccess │ │Iterator │ │Countable │
• ┘ └──────────┘ └──────────┘
Relationship Indicators
• Double lines (⇒) for inheritance relationships
Component Details
For each component, show:
• Class/Interface name
• Key methods/properties (especially for Url class)
• Implementation relationships
Additional Elements
• Any abbreviations used
Notes for Implementation
• The library's focus on URL manipulation
• The separation of concerns between different URL components
• The utility implementations that enable array-like access
• PSR-7 compatibility through trait implementation