How mohamed25885/pvm works
PVM is a cross-platform PHP version-manager CLI. A user invokes a command to discover or install PHP releases, select a version for a project or globally, and run PHP through the selected installation. The README also documents setup, diagnostics, updates, adopting existing installs, and extensions as distinct capabilities. Groups reflect CLI workflows and the platform/service layers; source excerpts were unavailable, so edges are limited to relationships explicitly described in the README.
Main entry points: app.dart Command entrypoint · use_command.dart Project selection · install_command.dart Install command · update_command.dart Update command
Components 28
CLI commands
- Command entrypoint
lib/src/app.dart - Project selection
lib/src/commands/use_command.dart - Global selection
lib/src/commands/global_command.dart - Install command
lib/src/commands/install_command.dart - Release listing
lib/src/commands/list_remote_command.dart - Current version
lib/src/commands/current_command.dart - Versioned execution
lib/src/commands/exec_command.dart - PHP proxy
lib/src/commands/php_command.dart - Composer proxy
lib/src/commands/composer_command.dart - Health diagnostics
lib/src/commands/doctor_command.dart - Environment setup
lib/src/commands/setup_command.dart - Update command
lib/src/commands/update_command.dart - Adopt installation
lib/src/commands/link_command.dart - Extension command
lib/src/commands/ext_command.dart
Version management
- Installed version slots
lib/src/domain/version_registry.dart - Project version config
lib/src/domain/project.dart - Version activation
lib/src/managers/link_version_activator.dart - Git ignore service
lib/src/core/gitignore_service.dart
Installation and releases
- Release retrieval
lib/src/services/release_fetcher.dart - Release sources
lib/src/services - Platform installers
lib/src/managers - Slot migration
lib/src/services/slot_migration.dart
Platform operations
- OS operations
lib/src/managers/io_os_manager.dart - Setup service
lib/src/services/installation/pvm_setup_service.dart - PHP runtime
Extensions and diagnostics
- Extension installation
lib/src/services/extensions - Diagnostic checks
lib/src/services/diagnostics/doctor_checks.dart
Other components
- CLI user
Connections 46
- CLI user → Command entrypoint: invokes
readme.md - Command entrypoint → Project selection: routes to
- Command entrypoint → Global selection: routes to
- Command entrypoint → Install command: routes to
- Command entrypoint → Release listing: routes to
- Command entrypoint → Current version: routes to
- Command entrypoint → Versioned execution: routes to
- Command entrypoint → PHP proxy: routes to
- Command entrypoint → Composer proxy: routes to
- Command entrypoint → Health diagnostics: routes to
- Command entrypoint → Environment setup: routes to
- Command entrypoint → Update command: routes to
- Command entrypoint → Adopt installation: routes to
- Command entrypoint → Extension command: routes to
- CLI user → Project selection: selects project
readme.md - Project selection → Project version config: writes version
readme.md - Project selection → Version activation: activates version
readme.md - Project selection → Git ignore service: ensures ignore
readme.md - CLI user → Global selection: sets global
readme.md - Global selection → Version activation: creates global link
readme.md - CLI user → Install command: requests install
readme.md - Install command → Release retrieval: fetches releases
- Install command → Platform installers: installs PHP
- Release retrieval → Release sources: retrieves from
- Platform installers → Installed version slots: installs into
- CLI user → Release listing: lists releases
readme.md - CLI user → Update command: updates slot
readme.md - Update command → Release retrieval: fetches newer release
- Update command → Slot migration: updates slot
- CLI user → Adopt installation: adopts PHP
readme.md - Adopt installation → Installed version slots: records slot
- CLI user → Extension command: installs extension
readme.md - Extension command → Extension installation: installs extension
- CLI user → Health diagnostics: checks setup
readme.md - Health diagnostics → Diagnostic checks: runs checks
- CLI user → Environment setup: configures PVM
readme.md - Environment setup → Setup service: configures environment
- Setup service → OS operations: changes environment
- CLI user → Versioned execution: runs command
readme.md - Versioned execution → PHP runtime: executes with version
- CLI user → PHP proxy: runs PHP
readme.md - PHP proxy → PHP runtime: proxies to
- CLI user → Composer proxy: runs Composer
readme.md - Composer proxy → PHP runtime: uses selected PHP
- CLI user → Current version: checks selection
readme.md - Current version → Installed version slots: resolves version