devoption/beacon

Production-ready Docker and Helm support for Laravel applications, with guided installation, Octane integration, and streamlined build/deploy workflows.

Maintainers

Package info

github.com/devoption/beacon

pkg:composer/devoption/beacon

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.1 2026-04-05 16:24 UTC

This package is auto-updated.

Last update: 2026-04-05 16:26:14 UTC


README

Production-ready Docker and Helm support for Laravel applications, with guided installation, Octane integration, and streamlined build and deploy workflows.

What Beacon does

Beacon installs into an existing Laravel application and scaffolds the first layer of production deployment assets.

Current MVP features:

  • interactive php artisan beacon:install command built with Laravel Prompts
  • optional Laravel Octane installation when the Octane runtime is selected
  • Dockerfile generation for php-fpm or octane
  • Helm chart scaffolding under charts/<application-slug>
  • managed Composer scripts for beacon:build and beacon:deploy
  • Pest coverage, Laravel compatibility CI, and automated semantic releases for the package itself

Out of scope for this MVP:

  • cloud-specific deployment logic
  • full platform provisioning
  • environment-specific infrastructure assumptions

Requirements

  • PHP ^8.3
  • Laravel ^11.0 | ^12.0 | ^13.0

Install

Recommended as a development dependency in the Laravel application you want to prepare:

composer require devoption/beacon --dev

Then run the installer:

php artisan beacon:install

Install flow

Beacon currently prompts for:

  • application name
  • runtime: php-fpm or octane
  • deployment scaffolding: docker, helm, or docker-and-helm
  • whether Beacon should update Composer scripts

When the Octane runtime is selected, Beacon checks the target application's composer.json and installs laravel/octane if it is not already present.

Generated files

Depending on the options you choose, Beacon generates:

  • Dockerfile
  • charts/<application-slug>/Chart.yaml
  • charts/<application-slug>/values.yaml
  • charts/<application-slug>/templates/_helpers.tpl
  • charts/<application-slug>/templates/deployment.yaml
  • charts/<application-slug>/templates/service.yaml
  • charts/<application-slug>/templates/ingress.yaml

If Composer script updates are enabled, Beacon also manages:

  • beacon:build
  • beacon:deploy

Example managed scripts:

{
  "scripts": {
    "beacon:build": "docker build --file Dockerfile --tag my-app:latest .",
    "beacon:deploy": "helm upgrade --install my-app ./charts/my-app --namespace default --create-namespace"
  }
}

Rerunning the installer

Beacon is designed to be rerunnable.

  • generated Beacon-managed files are rewritten with current stub output
  • unchanged generated files remain unchanged on repeat runs
  • Beacon-managed Composer script entries are updated without replacing unrelated user scripts

Development

Run the test suite with:

composer test

Repository automation also includes:

For contributor workflow details, see CONTRIBUTING.md.

For maintainer release and Packagist setup notes, see docs/RELEASING.md.

License

MIT