How repman-io/repman works
Main Components
a) Frontend Layer:
• Web Interface (Symfony-based templates in /templates)
• API Endpoints (in /src/Controller/Api)
• OAuth Integration Points (in /src/Controller/OAuth)
b) Application Core:
• Command Layer (/src/Command)
• Message System (/src/Message and /src/MessageHandler)
• Service Layer (/src/Service)
• Entity Layer (/src/Entity)
c) Infrastructure:
• PostgreSQL Database
• Message Queue System (Symfony Messenger)
• File Storage System (for package distributions)
• Email System
• Security Scanner
d) External Integrations:
• GitHub
• GitLab
• Bitbucket
• Packagist.org proxy
Relationships and Data Flow
• User requests flow through Nginx → PHP-FPM → Application
• Package synchronization flow from Git providers → Application → Storage
• Security scanning flow from Package Storage → Security Scanner → Database
• Async operations through Message Queue
• Proxy requests to packagist.org
Component Details
Frontend Layer:
┌─────────────────────────┐
• Nginx (Proxy) │
• ┘
• ↓
┌─────────────────────────┐
• Symfony Frontend │
• Web Interface │
• API Endpoints │
• OAuth Controllers │
• ┘
Application Core:
┌─────────────────────────┐
• Message System │
• Commands │
• Message Handlers │
• ┘
• ↕
┌─────────────────────────┐
• Service Layer │
• Package Management │
• Security Scanning │
• User Management │
• ┘
• ↕
┌─────────────────────────┐
• Entity Layer │
• ┘
Infrastructure:
┌─────────────────────────┐
• PostgreSQL │
• ┘
• ↕
┌─────────────────────────┐
• Message Queue │
• ┘
• ↕
┌─────────────────────────┐
• File Storage │
• ┘
Key Integration Points
Connections to:
• OAuth providers (GitHub, GitLab, Bitbucket)
• Package sources
• Email system
• Security scanning service
Important Notes
• Async nature of package synchronization and scanning
• Security boundaries
• Configuration points (environment variables)
• Scalable components (workers, storage)