Reusable Laravel API starter with Actions, DTOs, Sanctum auth and modular features.
444
Laravel API starter with Sanctum, Actions, typed DTOs, Resources, English/French translations and optional modules. Français.
composer create-project jump/lara-api-starter my-api
cd my-api
# The Composer hook starts the interactive installer.
# For a cloned checkout:
composer install
cp .env.example .env
php artisan api:install
Production-ready container image based on jkaninda/nginx-php-fpm:8.4, designed as a deployment base for this Laravel API.
docker pull judempoyo/lara-api-starter:latest
docker run -d -p 8080:80 --env-file .env judempoyo/lara-api-starter:latest
For CI or unattended installation:
php artisan api:install --preset=minimal --database=sqlite --migrate --no-interaction
php artisan api:install --preset=standard --modules=webhooks --no-interaction
php artisan serve
Health: /api/v1/health. Scalar: /docs/api. Scramble specification: /docs/api.json; export with php artisan scramble:export. Documentation is accessible locally; elsewhere it is denied unless a nonempty DOCS_ACCESS_KEY is configured and presented in the docs_access_key cookie. Replace the gate with your organization's authentication policy when appropriate.
| Preset | Modules |
|---|---|
| minimal | Core only |
| standard | rbac, two-factor, api-keys, preferences, notifications |
| full | All modules |
Available modules: preferences, notifications, api-keys, media, export, import, webhooks, two-factor, social-login, rbac, impersonation, security-audit.
php artisan api:list
php artisan api:add webhooks
php artisan migrate
php artisan api:remove webhooks
php artisan api:doctor --database
php artisan make:api-scaffold Product
composer dev
composer check-all
Other generators: make:api-action, make:api-dto, make:api-request, make:api-resource, make:api-controller, make:api-stack.
The installer adds dependencies automatically and never removes existing modules when changing presets. Remove dependents before their dependencies. Removal refuses locally modified module files and retains database data and Composer packages. See UPGRADING.md.
Core AI guidelines and skills live in .ai/. Module instructions are installed and removed with the module. Run php artisan boost:install to select your AI agents; Boost generates their configuration. Subsequent module changes run boost:update when Boost has been configured.
See architecture, dependency decisions, and changelog.
latest: Latest stable release published from a Git release tag (v*).<version> (e.g. 1.2.0): Immutable version published via Git tag or manual workflow dispatch.sha-<hash>: Snapshot tied to a specific commit SHA.Content type
Image
Digest
sha256:ad86a310b…
Size
294.5 MB
Last updated
9 days ago
docker pull judempoyo/lara-api-starter