revolution/laravel-slim

Set up a Laravel project to console/api only.

Installs: 360

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Language:Blade

1.4.0 2025-03-24 00:52 UTC

This package is auto-updated.

Last update: 2025-03-24 00:53:03 UTC


README

Set up a Laravel project to console/api only.

  • Console only
  • Stateless API only

Requirements

  • PHP >= 8.2
  • Laravel >= 12.0

Only new projects with Laravel 12 or later.(No starter kit, No API)

Installation

composer require revolution/laravel-slim --dev

Uninstall

composer remove revolution/laravel-slim --dev

Once you have run the command you can uninstall this package.

Usage

Console project

Be sure to run this command only on new projects. A lot of files are deleted.

php artisan slim:console

Which files will be deleted? See SlimConsoleCommand.php

After set up

You can use the usual artisan commands.

php artisan make:command Test

Re-add config file

php artisan config:publish services

Stateless API project (Sanctum API Token Authentication)

Be sure to run this command only on new projects.

php artisan slim:api

LICENSE

MIT