How liuzhanpeng/hyperf-auth-guard works
File structure
• Top-level files:
• .gitignore – Git excludes
• LICENSE – License text
• README.md – Project description
• Although the provided tree doesn’t show code directories, a typical Hyperf library would include:
• src/ – the PHP source code (Guards, Middleware, Config)
• config/ – default configuration files
• tests/ – unit and integration tests
• composer.json – dependency and autoload definitions
• publishable assets – e.g. config/auth.php
Key elements to capture
• Auth Guard as a middleware in the pipeline
• Pluggable drivers (JWT, session) as subcomponents
• User Provider interface and concrete implementations
• Token Manager/service boundaries
• Dependency Injection container wiring
• Configuration file publication path