Download the PHP package caiquebispo/laraslim without Composer
On this page you can find all versions of the php package caiquebispo/laraslim. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download caiquebispo/laraslim
More information about caiquebispo/laraslim
Files in caiquebispo/laraslim
Package laraslim
Short Description A lightweight PHP microframework combining Slim and Laravel features for fast and structured API development.
License MIT
Informations about the package laraslim
Description
LaraSlim is a microframework for PHP that combines the lightness of the Slim Framework with a structure inspired by Laravel. It's ideal for creating clean, modular APIs with a lightweight and fast setup.
Note: This project does not include an authentication engine by default. You can integrate your own or use third-party libraries.
It also doesn't include a template engine, but you can integrate it with Blade (Laravel) or any other engine of your choice.
⚠️ This is a beta project: some features may be under development and bugs may occur.
Requirements
- PHP ^8.4
- Docker
-
Composer
Installation via Composer
Manual Installation
-
Clone the repository:
-
Build Docker containers:
-
Start the Docker containers:
-
Attach the Docker containers:
-
Down the Docker containers:
-
Install dependencies:
-
Copy the
.env
file: - Run tests and checks:
- Show all available commands:
Application Access
- API:
http://localhost:8003
- PHPMyAdmin:
http://localhost:8080
- User:
root
- Password:
root
- User:
Project Structure
app/Http/Controllers
: Application controllers.app/Http/Request
: Form validation files.app/Models
: Data models.app/DTOs
: Data Transfer Objects.app/Services
: Business logic layer.app/Kernel
: Configuration and setup files.database/migrations
: Database migration files.public
: Web-accessible files (e.g.,index.php
).composer.json
: Composer configuration.
Database Configuration
Configure your .env
file as needed. Example using SQLite:
Useful Commands
Create a new migration:
Create a new model:
Create a new controller:
Create a new form request:
Migrations are automatically executed when the container is started.
Examples
Route Group
Simple Route
Basic Controller
Form Request
Using Form Request in Controller
Author
- Caique Bispo
📧 [email protected]
License
This project is licensed under the terms of the MIT License.
All versions of laraslim with dependencies
slim/slim Version 4.*
slim/psr7 Version ^1.7
illuminate/database Version ^12.7
illuminate/http Version ^12.7
vlucas/phpdotenv Version ^5.6
php-di/php-di Version ^7.0
illuminate/validation Version ^12.7
symfony/console Version ^7.2
caiquebispo/blade-slim Version ^1.0