PHPackages                             gruxlolo-dev/sterslim - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. gruxlolo-dev/sterslim

ActiveProject[Framework](/categories/framework)

gruxlolo-dev/sterslim
=====================

PHP Starter Kit - lightweight framework skeleton with Docker and Attribute Routing

v1.0.0(2mo ago)04MITPHPPHP ^8.2

Since May 5Pushed 2mo agoCompare

[ Source](https://github.com/gruxlolo-dev/sterslim)[ Packagist](https://packagist.org/packages/gruxlolo-dev/sterslim)[ RSS](/packages/gruxlolo-dev-sterslim/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (8)Versions (9)Used By (0)

🚀 Sterslim v1.0.0
=================

[](#-sterslim-v100)

**Sterslim** is a high-performance, lightweight PHP Starter Kit built on top of the Slim 4 Framework. It provides a modern, "Laravel-like" developer experience with a fraction of the weight, featuring an interactive CLI, automated Docker environment, and attribute-based routing.

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)[![PHP Version](https://camo.githubusercontent.com/962aced9b09d89716dbebf186ff899754a096ff1068b6b7988675c2d9fab9331/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e322d626c75652e737667)](https://php.net)

---

✨ Key Features
--------------

[](#-key-features)

- **💻 Sterslim CLI**: A powerful command-line tool for scaffolding and project management.
- **🛣️ Attribute Routing**: Define your routes directly in controllers using PHP 8 attributes.
- **🐳 Dockerized**: Production-ready Apache + PHP 8.2 setup with automated `.env` and `docker-compose.yml` generation.
- **🏗️ Smart Scaffolding**: Generate Controllers, Services, and Middlewares with one command.
- **🗄️ Eloquent ORM**: Full support for MySQL, MariaDB, PostgreSQL, and MongoDB.
- **🛡️ Secure by Default**: Hardened Apache configuration protecting your system files and serving only the `public/` directory.

---

📦 Installation
--------------

[](#-installation)

Create a new project using Composer:

```
composer create-project gruxlolo-dev/sterslim my-app
```

*Note: The interactive installer will start automatically to configure your database and Docker environment.*

---

🛠️ The Sterslim CLI
-------------------

[](#️-the-sterslim-cli)

Manage your application with the built-in CLI tool:

CommandDescription`php sterslim create module [Name]`Generates Controller, Service, and Middleware.`php sterslim create controller [Name]`Generates a new API Controller.`php sterslim create service [Name]`Generates a new Service class.`php sterslim create middleware [Name]`Generates a new Middleware.`php sterslim list routes`Lists all discovered routes and endpoints.`php sterslim install`Re-runs the interactive installer.---

🚀 Usage Guide
-------------

[](#-usage-guide)

### 1. Defining Routes

[](#1-defining-routes)

Stop hunting through routing files. Define routes directly where they belong:

```
namespace App\Controllers;

use App\Attributes\Route;
use App\Middlewares\AuthMiddleware;

class UserController {
    #[Route(path: "/api/users", method: "GET", middleware: [AuthMiddleware::class])]
    public function index($request, $response) {
        // Your logic here
        return $response->withHeader('Content-Type', 'application/json');
    }
}
```

### 2. Layered Architecture

[](#2-layered-architecture)

Generated modules follow a clean structure:

- **Controllers**: Handle HTTP requests and JSON responses.
- **Services**: Contain business logic and database interactions.
- **Middlewares**: Handle cross-cutting concerns (Auth, Validation, CORS).

### 3. Database &amp; Docker

[](#3-database--docker)

Start your development environment with a single command:

```
docker-compose up -d
```

Access your application at `http://localhost:8080`.

---

📂 Project Structure
-------------------

[](#-project-structure)

```
├── bootstrap/          # App initialization & DB setup
├── config/             # Configuration files
├── installer/          # Interactive setup scripts
├── public/             # Web server root (index.php, .htaccess)
├── src/
│   ├── Attributes/     # Custom PHP Attributes
│   ├── Controllers/    # API Controllers
│   ├── Middlewares/    # Application Middlewares
│   ├── Routing/        # Route Discovery Engine
│   └── Services/       # Business Logic / Services
└── sterslim            # Main CLI Tool

```

---

📜 License
---------

[](#-license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

---

Developed with ❤️ by [gruxlolo-dev](https://github.com/gruxlolo-dev)

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance84

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

7

Last Release

80d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/247670867?v=4)[Kacper](/maintainers/gruxlolo-dev)[@gruxlolo-dev](https://github.com/gruxlolo-dev)

---

Top Contributors

[![gruxlolo-dev](https://avatars.githubusercontent.com/u/247670867?v=4)](https://github.com/gruxlolo-dev "gruxlolo-dev (20 commits)")

### Embed Badge

![Health badge](/badges/gruxlolo-dev-sterslim/health.svg)

```
[![Health](https://phpackages.com/badges/gruxlolo-dev-sterslim/health.svg)](https://phpackages.com/packages/gruxlolo-dev-sterslim)
```

###  Alternatives

[showdoc/showdoc

ShowDoc is a tool greatly applicable for an IT team to share documents online

12.8k7.1k](/packages/showdoc-showdoc)[phlak/directory-lister

PHP directory lister

2.5k1.4k](/packages/phlak-directory-lister)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[duxweb/dux-lite

The lightweight framework based on slim php

161.0k9](/packages/duxweb-dux-lite)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
