Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kawax/laravel-slim
https://github.com/kawax/laravel-slim
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kawax/laravel-slim
- Owner: kawax
- License: mit
- Created: 2024-04-05T04:38:53.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-11-21T10:31:17.000Z (about 1 month ago)
- Last Synced: 2024-11-21T11:29:27.842Z (about 1 month ago)
- Language: PHP
- Size: 65.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Slim
Set up a Laravel project to console/api only.
- Console only
- Stateless API only## Requirements
- PHP >= 8.2
- Laravel >= 11.0Only new projects with Laravel 11 or later.(No starter kit, No API)
## Installation
```shell
composer require revolution/laravel-slim --dev
```### Uninstall
```shell
composer remove revolution/laravel-slim --dev
```## Usage
### Console project
Be sure to run this command only on new projects. A lot of files are deleted.```shell
php artisan slim:console
```Which files will be deleted? See SlimConsoleCommand.php
#### After set up
You can use the usual artisan commands.```shell
php artisan make:command Test
```#### Re-add config file
```shell
php artisan config:publish services
```### Stateless API project (Sanctum API Token Authentication)
Be sure to run this command only on new projects.```shell
php artisan slim:api
```## LICENSE
MIT