open-southeners/sidecar-local

An extension of Laravel Sidecar project to be able to use it locally with Docker
2,038 9
Install
composer require open-southeners/sidecar-local
Latest Version:2.0.0
PHP:^8.2
License:MIT
Last Updated:Jun 3, 2026
Links: GitHub  ·  Packagist
Maintainer: d8vjork

Laravel Sidecar Local required php version codecov Edit on VSCode online

An extension of Laravel Sidecar project to be able to use it locally with Docker.

Getting started

composer require open-southeners/sidecar-local

Setting up

Publish config file with the following command:

php artisan vendor:publish --provider="OpenSoutheners\\SidecarLocal\\ServiceProvider"

Then don't forget to set your sidecar.env config option to local and the sidecar.functions with the ones you want to test locally to make this work.

Run the following command to publish Docker Compose files into resources/sidecar with --run option to run Docker with all services locally:

php artisan sidecar:local --run

By default this starts a Docker-in-Docker daemon container and runs Traefik plus all Lambda runtime containers inside it. This keeps local Lambda containers isolated from the host Docker daemon while still exposing the local invoke endpoint on localhost:6000.

To stop the services you can just run the same but with --stop option:

php artisan sidecar:local --stop

Stopping uses a Sidecar-specific Compose project name and removes orphaned Sidecar function containers. It should not be run against your application's main Docker Compose or Sail stack.

Laravel Sail

Use --sail when running Sidecar Local from a Laravel Sail project:

php artisan sidecar:local --sail --run

Set SIDECAR_LOCAL_HOST=sidecar-docker when the Laravel application container needs to call the local Lambda endpoint through the DinD service. If your Sail network is not named sail, set SIDECAR_LOCAL_DOCKER_NETWORK to the actual external Docker network name.

Partners

skore logo

License

This package is open-sourced software licensed under the MIT license.

Related Packages

benconstable/phpspec-laravel

Test your Laravel applications with PhpSpec

354,747 144
srlabs/laravel-testing-utilities

Helper utilities for testing Laravel Applications

11,921 10
laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

42,256,008 1,945
laravel/browser-kit-testing

Provides backwards compatibility for BrowserKit testing in the latest Laravel re...

10,416,555 516
sofa/laravel-kahlan

Kahlan specs suite for testing Laravel applications

24,192 15