PHPackages                             oscar-ol/slim-starter - 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. oscar-ol/slim-starter

ActiveProject

oscar-ol/slim-starter
=====================

A PHP application boilerplate using Slim v4, featuring a Laravel-inspired architecture.

v1.0.2(1y ago)29MITPHP

Since May 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/oscar-ol/slim-starter)[ Packagist](https://packagist.org/packages/oscar-ol/slim-starter)[ RSS](/packages/oscar-ol-slim-starter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (17)Versions (2)Used By (0)

Slim Starter
============

[](#slim-starter)

Slim Starter is a base template for building PHP applications using the Slim microframework v4, but with an architecture inspired by Laravel.

This project includes helpers, libraries, and a folder organization that facilitates professional development of APIs or lightweight web applications, keeping the code clean and easy to maintain.

Features
--------

[](#features)

- **Slim Framework**: A fast and flexible microframework for PHP.
- **Laravel-inspired architecture**: Organized folder structure, helpers, and centralized configuration.
- **Twig**: Template engine for rendering views.
- **Eloquent ORM**: Database management with Laravel's ORM.
- **Dotenv**: Environment variable management.
- **CSRF Protection**: Middleware to protect against CSRF attacks.
- **Error handling**: Custom views for 404 and 500 errors.
- **Support for migrations and seeders**: Using Phinx to manage the database.
- **Mailer Service**: Simplified email sending with PHPMailer integration.
- **Testing with Pest**: Write expressive and maintainable tests.
- **Static analysis with PHPStan**: Ensure code quality and type safety.
- **Code formatting with Pint**: Maintain consistent code style.
- **Modular structure**: Easily extendable and maintainable codebase.

Requirements
------------

[](#requirements)

- PHP &gt;= 8.1
- Composer
- Web server (Apache, Nginx, or PHP's built-in server)
- Compatible database (MySQL, SQLite, etc.)

Installation
------------

[](#installation)

1. Run this command to install:

    ```
    composer create-project oscar-ol/slim-starter [my-app-name]
    ```
2. Navigate to the project directory:

    ```
    cd [my-app-name]
    ```
3. Configure the environment variables in the `.env` file as needed.

Usage
-----

[](#usage)

### Start the development server

[](#start-the-development-server)

```
php -S localhost:8080 -t public/
```

or

```
composer start
```

### Project structure

[](#project-structure)

- **app/**: Contains controllers, middlewares, and exceptions.
- **config/**: Configuration files.
- **database/**: Migrations and seeders.
- **helpers/**: Global functions to facilitate development.
- **public/**: Application entry point.
- **resources/views/**: Twig templates.
- **routes/**: Web and API route definitions.
- **storage/**: Cache and other generated files.
- **tests/**: Unit and feature tests using Pest.

### Useful commands

[](#useful-commands)

- **Migrations**:

    ```
    vendor/bin/phinx create MigrationName
    vendor/bin/phinx migrate
    vendor/bin/phinx rollback
    ```
- **Seeders**:

    ```
    vendor/bin/phinx seed:run
    ```

    Additional information about Phinx: [Phinx Documentation](https://phinx.org/)

### Composer Tools

[](#composer-tools)

This project includes several Composer tools to improve code quality and maintainability:

- **Rector**: For automated code refactoring.

    ```
    composer tools:rector
    ```
- **PHPStan**: For static code analysis.

    ```
    composer tools:phpstan
    ```
- **Pint**: For code formatting.

    ```
    composer tools:pint
    ```
- **Pest**: For running tests.

    ```
    composer tools:pest
    ```
- **Clear view cache**:

    ```
    composer view:clear
    ```

You can run all tools at once using:

```
composer tools
```

Contributing
------------

[](#contributing)

If you want to contribute to this project, please open an issue or submit a pull request. All help is welcome!

License
-------

[](#license)

This project is licensed under the MIT License.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance49

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

370d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d7ed9b824944d014c0081d5e22e265e6ffdf79506fe1279674ca32553d6b777?d=identicon)[oscar-ol](/maintainers/oscar-ol)

---

Top Contributors

[![oscar-ol](https://avatars.githubusercontent.com/u/16516316?v=4)](https://github.com/oscar-ol "oscar-ol (1 commits)")

---

Tags

boilerplateframeworklaravelphpslimslim-frameworkslim4slim4-frameworkslim4-skeletontemplate

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/oscar-ol-slim-starter/health.svg)

```
[![Health](https://phpackages.com/badges/oscar-ol-slim-starter/health.svg)](https://phpackages.com/packages/oscar-ol-slim-starter)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[phlak/directory-lister

PHP directory lister

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

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[bacula-web/bacula-web

The open source web based reporting and monitoring tool for Bacula

1537.5k](/packages/bacula-web-bacula-web)

PHPackages © 2026

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