PHPackages                             redslim/redslim - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. redslim/redslim

ActiveLibrary[HTTP &amp; Networking](/categories/http)

redslim/redslim
===============

RedSlim (Slim + Twig + Redbean), a PHP micro framework

v1.5.0(10y ago)1077815[2 issues](https://github.com/vanting/RedSlim/issues)[1 PRs](https://github.com/vanting/RedSlim/pulls)MITHTMLPHP &gt;=5.3.4

Since Jul 1Pushed 10y ago14 watchersCompare

[ Source](https://github.com/vanting/RedSlim)[ Packagist](https://packagist.org/packages/redslim/redslim)[ Docs](https://github.com/vanting/RedSlim)[ RSS](/packages/redslim-redslim/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (7)Versions (9)Used By (0)

RedSlim (Slim + Twig + Redbean), a PHP micro framework
======================================================

[](#redslim-slim--twig--redbean-a-php-micro-framework)

[![Latest Stable Version](https://camo.githubusercontent.com/af32be6375aecf75f2a06fdfb4b54d92aac32b57512593d18c5f596f44fcb568/68747470733a2f2f706f7365722e707567782e6f72672f726564736c696d2f726564736c696d2f762f737461626c652e706e67)](https://packagist.org/packages/redslim/redslim)

RedSlim is a lightweight PHP framework that bundling the following open source components. Its dependency is managed by **Composer** and can be easily updated. By default, RedSlim is configured to run with SQLite database. The database abstraction is done by Redbean, a simple and initutive ORM tool. With its fluid mode enabled, you can incrementally test and build your database schema and start prototyping your idea immediately. RedSlim is a zero-configuration framework for you to get start and learn quickly. You can also switch to other databases and use it for serious project.

To learn more about these powerful components, check this out:

- **Controller/Routing**: Slim ([codeguy/Slim](https://github.com/codeguy/Slim))
- **Model/Persistence/ORM**: RedBean ([gabordemooij/redbean](https://github.com/gabordemooij/redbean))
- **View/Template**: Twig ([fabpot/Twig](https://github.com/fabpot/Twig))
- **UI Toolkit**: Twitter Bootstrap ([twitter/bootstrap](https://github.com/twitter/bootstrap))

Versions
--------

[](#versions)

There are two branches - *master* and *php52*. Because many new PHP features (e.g. closure) require PHP5.3+ and so do the above components, *php52* is a special release for those who have no choice to upgrade server version but still want to deploy RedSlim. This branch will not receive further support and development.

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

[](#installation)

### Pagoda Box Quickstart

[](#pagoda-box-quickstart)

Pagoda Box is a flexible PHP cloud hosting. This Quickstart installation of RedSlim includes a preconfigured **MySQL** database and **Redis** cache. You can install RedSlim either directly from the [Pagoda Box App Cafe](https://pagodabox.com/cafe/vanting/redslim), as a Quickstart through your Pagoda Box dashboard during the new application creation process, or by cloning the [GitHub repository](https://github.com/vanting/RedSlim.git) and pushing it to an empty Pagoda Box application repository.

### Self Managed Server

[](#self-managed-server)

The instructions below assume you are running a **LAMP** stack in Ubuntu or any other **apt**-based distributions. To allow Slim to route with clean path syntax, you need to enable the url rewrite module.

```
sudo a2enmod rewrite
sudo service apache2 restart

```

Optionally, if you want to run this demo with the default SQLite database, you need the driver

```
sudo apt-get install php5-sqlite

```

Suppose your document root is in /var/www, clone the repository as follows:

```
cd /var/www
git clone https://github.com/vanting/RedSlim.git redslim

```

Run these commands to globally install composer on your system:

```
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

```

The required vendor libraries can be installed/updated using [Composer](http://getcomposer.org/). Go to the project root (where you see the file *composer.json*) and run the following command:

```
cd ./redslim
composer install

```

There are some directories should be made writeable to your web server process.

```
chmod -R 777 ./app/storage

```

Then, update your apache config file to set your document root to the **web** subdirectory. This helps to secure your scripts which should normally be put inside the **app/** folder.

```

	DocumentRoot /var/www/redslim/web
	ServerName example.com

```

Note that in order to make the *.htaccess* effective, your main apache config file must allow subdirectory to override it.

```

	AllowOverride All

```

\##Structure

- **app/** contains all files for your app: `models/`, `controllers/`, `views/` (Twig templates) and your `config/` (configuration). Slim is instantiated in `app/start.php`
- **vendor/** contains the libraries for your application, and you can update them with composer.
- **web/** is for your assets: js/css/img files. It should be the only folder publically available so your domain should point to this folder. `web/index.php` bootstraps the rest of the application.

\##Writable Directory

- **app/storage/db/** contains SQLite database file.
- **app/storage/cache/twig/** contains the twig template cache.
- **app/storage/logs/** contains the error logs.

Additions
---------

[](#additions)

#### Demo

[](#demo)

- Site:

#### Macros

[](#macros)

- Bootstrap macros in `views/macros/bootstrap.twig`
    - alert
    - label
    - btn

#### Templates

[](#templates)

There are a couple of Twig templates in this package. They are included for common use.

- A Bootstrap Hero template: `base/hero.html.twig`
- A Bootstrap Fluid template: `base/fluid.html.twig`
- Both of these templates have Slim flash capabilities. The flash template is located in `base/components/flash.twig`
- A Bootstrap login form template: `/login.html.twig`

Credits
-------

[](#credits)

This project is inspired from [Tieno/SlimPackage](https://github.com/Tieno/SlimPackage/) and [briankiewel/pagodabox-laravel-4](https://github.com/briankiewel/pagodabox-laravel-4).

License
-------

[](#license)

The RedSlim framework is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

---

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 90.9% 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 ~133 days

Recently: every ~194 days

Total

7

Last Release

3948d ago

PHP version history (3 changes)v1.0.0PHP &gt;=5.3.2

v1.3.1PHP &gt;=5.2.0

v1.5.0PHP &gt;=5.3.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1543758?v=4)[Van Ting](/maintainers/vanting)[@vanting](https://github.com/vanting)

---

Top Contributors

[![vanting](https://avatars.githubusercontent.com/u/1543758?v=4)](https://github.com/vanting "vanting (20 commits)")[![acidvertigo](https://avatars.githubusercontent.com/u/809397?v=4)](https://github.com/acidvertigo "acidvertigo (1 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")

---

Tags

restroutermicroframework

### Embed Badge

![Health badge](/badges/redslim-redslim/health.svg)

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

PHPackages © 2026

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