reedware/sail-lite
Sail Lite is a lightweight CLI for PHP package development using a baseline Docker environment. It ships a docker-compose.yml and a sail script that wrap common Docker Compose tasks (up, down, build, exec), inspired by Laravel Sail but framework-agnostic.
docker-compose.yml configuration. Its single-container focus (PHP-only) aligns perfectly with standalone PHP libraries or Laravel add-ons that lack database/Node.js dependencies.illuminate/*, symfony/* dependencies), making it ideal for generic PHP packages or non-Laravel PHP projects.docker-compose.yml args or .env, enabling consistent local/CI environments without version conflicts.sail publish, it lacks built-in support for multi-container setups (e.g., databases, Redis). Teams needing these must extend manually or use Laravel Sail.2.0.0 introduced runtime versioning changes and assertions enabled by default, which could break existing setups if not tested thoroughly.spatie/laravel-* clones), this is a strong fit..env or rely on defaults? Misconfigurations could lead to runtime errors.pdo_pgsql), they must publish and modify Dockerfiles—adding maintenance overhead.reedware/sail-lite itself, Laravel add-ons, CLI tools).docker-compose.yml management.blackfire, xdebug) that may require manual Dockerfile tweaks.sail publish.docker-compose.yml for consistency.composer require reedware/sail-lite --dev and sail install are one-liners.sail bash vs. docker compose exec -u sail dev bash)..env or docker-compose.yml args, eliminating version drift.php.ini) may need adjustments.composer.json under require-dev.composer require reedware/sail-lite --dev
./vendor/bin/sail install
sail up -d
PHP_VERSION in .env (e.g., PHP_VERSION=8.2).sail publish if needed (e.g., adding PHP extensions).docker-compose.yml in CI with the published Sail Lite config.PHP_VERSION in .env.sail CLI abstracts Docker Compose commands, reducing CLI command sprawl.sail publish, they must track changes and rebuild images (sail build --no-cache).WWWUSER/WWWGROUP in docker-compose.yml.sail publish + Dockerfile edits.sail down + sail up usually resolves them.sail logs # View container logs
sail shell # Inspect filesystems
sail root-shell # Debug as root
| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Docker Daemon Crashes | Devs |
How can I help you explore Laravel packages today?