Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Ssh Laravel Package

spatie/ssh

Execute commands over SSH with a simple PHP API. Create a connection with user/host (and optional port), run single or multiple commands synchronously or async, and get a Symfony Process back to inspect success and capture output.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs Buy: Strongly favors "buy" over building custom SSH logic. Implementing secure SSH handling from scratch is error-prone, time-consuming, and introduces security risks (e.g., handling credentials, edge cases like timeouts or host key verification). This package abstracts complexity while leveraging Symfony's battle-tested Process component.
  • Use Cases: Ideal for server management scripts, CI/CD pipelines (e.g., deploying code to remote servers), automated maintenance tasks (log rotation, service restarts), and cross-server orchestration where PHP is the primary language. Supports async execution for non-blocking operations and file transfers via SCP.
  • Roadmap Impact: Enables rapid iteration on infrastructure-related features without diverting engineering resources to low-level networking code. Reduces technical debt by using a maintained dependency with clear versioning and security patches.

When to Consider This Package

Adopt this package when your project is PHP-based and requires lightweight, secure SSH command execution or file transfers (SCP) with minimal configuration. It excels for straightforward server interactions where Symfony Process compatibility is valuable, and when you need features like jump hosts, password auth (with sshpass), or multiplexing for connection reuse. Avoid it if you need advanced SSH features beyond command execution (e.g., interactive terminal sessions,

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation
uri-template/tests