Weave 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

Sidecar Local Laravel Package

open-southeners/sidecar-local

Run Laravel Lambda functions locally with Sidecar Local, a companion package for hammerstone/sidecar. Streamline development and testing of serverless handlers so you can invoke, debug, and iterate on queues, events, and HTTP handlers on your machine before deploying to AWS.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

  • Architecture fit: The package remains a Laravel-centric tool for invoking AWS Lambda functions locally and deploying them. The 2.0 release doubles down on local development ergonomics by introducing a Docker-in-Docker (DinD) runtime for sidecar:local. This fits well for teams already containerized and using Laravel Sail, but adds a hard dependency on Docker and a managed daemon. The scoped Compose project handling and orphan removal improve isolation and cleanup, reducing cross-project interference.
  • Integration feasibility: Integration is via Composer, but the removal of Laravel 11 and PHP 8.1 support is a significant gate. Projects on Laravel 11 cannot adopt 2.0 without downgrading Laravel (unlikely) or waiting for a future release. PHP 8.1 users must upgrade to 8.2+. The new --sail option and configurable SIDECAR_LOCAL_HOST ease adoption for Sail users. Testbench fixtures and Docker integration tests signal improved testability, but the DinD requirement may block adoption in restricted CI/CD environments.
  • Technical risk: High. Breaking changes (dropped Laravel 11 and PHP 8.1) create immediate compatibility friction. DinD typically requires privileged containers, which is a security and policy risk in many organizations. The managed sidecar-docker daemon introduces a new background process to monitor and troubleshoot. Potential for port conflicts, resource contention, and stale container leaks if cleanup fails. The rationale for dropping Laravel 11 (a current major version) is unclear and suggests possible misalignment with the Laravel release cycle.
  • Key questions: Why was Laravel 11 support removed? Is there a roadmap for Laravel 12 or re-adding 11? What are the security and compliance implications of running Docker-in-Docker? How does the managed daemon behave on Windows/macOS? What is the support policy for 1.x? Are there migration guides for teams currently using sidecar:local --run? How are orphaned containers detected and removed if the daemon crashes?

Integration Approach

  • Stack fit: Best suited for Laravel 10 (and presumably Laravel 12 when available) on PHP 8.2+, with Docker installed and privileged mode permitted. Teams using Laravel Sail gain first-class support via --sail. Teams on Laravel 11 must defer adoption or evaluate staying on the previous major version. Non-Docker environments cannot use the new local runtime.
  • Migration path: From 1.x, assess whether sidecar:local --run is used; 2.0 changes the default to DinD, so existing scripts and developer workflows may break. Update Docker Desktop/Engine to a version supporting DinD, ensure the sidecar-docker daemon can run, and test container cleanup. For new adopters, start with a proof-of-concept on a non-critical Laravel app to validate Docker permissions and network configuration.
  • Compatibility: Verify Laravel version (10 or 12) and PHP version (8.2+). Confirm CI runners support Docker-in-Docker (e.g., GitHub Actions requires a Docker service or privileged mode). Check that the managed daemon does not conflict with existing Docker Compose projects. The SIDECAR_LOCAL_HOST setting helps when the Lambda client runs outside the Docker network.
  • Sequencing: (1) Upgrade PHP to 8.2+ and align Laravel to a supported version. (2) Update the package to 2.0 in a feature branch. (3) Reconfigure local runtime to use DinD, optionally with --sail. (4) Run the provided Docker integration tests and validate stale container cleanup. (5) Update CI pipelines to support DinD and the new daemon. (6) Roll out to developers with documentation on the new local workflow.

Operational Impact

  • Maintenance: Adds ongoing overhead for Docker daemon management, container lifecycle cleanup, and DinD security patching. The scoped Compose projects and orphan removal reduce manual cleanup, but teams must monitor for stale containers and daemon health. Version support is narrower (no Laravel 11), so upgrade cycles may be constrained.
  • Support: Official support now excludes Laravel 11 and PHP 8.1, which may leave some teams unsupported. Internal support teams need training on DinD troubleshooting and the sidecar-docker daemon. The Testbench fixtures and integration tests help with regression testing but do not replace operational runbooks.
  • Scaling: Primarily a local development tool, so production scaling is unaffected. However, CI/CD pipelines that run sidecar:local will need DinD-capable runners, which can increase cost and reduce parallelism. The managed daemon may become a bottleneck if many developers run it simultaneously on shared infrastructure.
  • Failure modes: Docker daemon failure or misconfiguration blocks local Lambda invocation. Privileged container restrictions cause silent failures. Port conflicts or network isolation issues prevent the Lambda client from reaching the local runtime. Orphaned containers can accumulate if cleanup is interrupted. The removal of Laravel 11 support can cause Composer resolution failures for teams on that version.
  • Ramp-up: Moderate to high. Developers familiar with Docker and Laravel Sail will adapt quickly; others need training on DinD concepts, the new sidecar:local flags, and container debugging. TPMs should budget time for documentation, a pilot phase, and CI pipeline updates before broad rollout.
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.
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox