Search by

jump / lara-api-starter

judempoyo

Laravel API starter with Action-DTO architecture and Sanctum authentication.

Package info

github.com/judempoyo/laraApiStarter

Type:project

pkg:composer/jump/lara-api-starter

Statistics

Installs: 11

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

2.0.0-rc.1 2026-10-19 02:12 UTC

This package is auto-updated.

Last update: 2026-10-20 06:00:56 UTC


README

Laravel 12 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

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.