PHPackages                             awurth/slim-rest-base - 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. awurth/slim-rest-base

AbandonedArchivedLibrary[Framework](/categories/framework)

awurth/slim-rest-base
=====================

Slim PHP Micro-Framework for building a REST API

3.3.0(7y ago)232387MITPHPPHP ^7.0

Since Feb 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/awurth/SlimREST)[ Packagist](https://packagist.org/packages/awurth/slim-rest-base)[ Docs](https://github.com/awurth/SlimREST)[ RSS](/packages/awurth-slim-rest-base/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (16)Versions (28)Used By (0)

Slim 3 RESTful application skeleton
===================================

[](#slim-3-restful-application-skeleton)

[![SensioLabsInsight](https://camo.githubusercontent.com/ab636d4472d05a1bd5378931ba246a2e53e29bafef4c2548afceef47f0b0908e/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f61306563303033382d643934362d343430382d383336372d3365316331653236623365372f6d696e692e706e67)](https://insight.sensiolabs.com/projects/a0ec0038-d946-4408-8367-3e1c1e26b3e7) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/0721d8528d9fc06e4193bd929c871c1f73c507c62a3ecfdd31f30fa03514d82b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6177757274682f736c696d2d726573742d626173652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/awurth/slim-rest-base/?branch=master)

This is an app skeleton for the Slim PHP Micro-Framework to get started quickly building a REST API

Features
--------

[](#features)

- [Eloquent ORM](https://github.com/illuminate/database)
- Authentication ([Sentinel](https://github.com/cartalyst/sentinel) + [OAuth 2](https://github.com/bshaffer/oauth2-server-php))
- Validation ([Respect](https://github.com/Respect/Validation) + [Slim Validation](https://github.com/awurth/slim-validation))
- Logs ([Monolog](https://github.com/Seldaek/monolog))
- Dotenv configuration
- Console commands for updating the database schema and creating users
- A RESTful router

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

[](#installation)

##### Create Project

[](#create-project)

```
$ composer create-project awurth/slim-rest-base [app-name]
```

##### Set File permissions

[](#set-file-permissions)

```
cd [app-name]
sudo chown -R [your-username]:www-data [app-name]
sudo chmod -R 775 [app-name]/var
```

##### Create database

[](#create-database)

1. Create a new database.
2. Rename /env.dist to .env and set the db connection details.
3. Create Tables

```
$ php bin/console db
```

##### Set URL (dev)

[](#set-url-dev)

Used for generating links in API routes markdown.

```
$ sudo nano /config/services.dev.php
```

Edit line 6 and set the url to your API.

```
$config['rest']['url'] = 'https://[your-url]';
```

Console Tools
-------------

[](#console-tools)

### Create users

[](#create-users)

```
$ php bin/console user:create
```

Use `--admin` option to set the user as admin

### Dump routes

[](#dump-routes)

Execute the following command at the project root to print all routes in your terminal

```
$ php bin/console routes
```

Use --markdown or -m option to display routes in markdown format

```
$ php bin/console routes -m > API.md
```

If you're using [Oh My Zsh](https://github.com/robbyrussell/oh-my-zsh), you can install the symfony2 plugin, which provides an alias and autocompletion:

```
# Without Symfony2 plugin
$ php bin/console db

# With Symfony2 plugin
$ sf db
```

TODO
====

[](#todo)

- PHPUnit

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 99.7% 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 ~27 days

Recently: every ~98 days

Total

26

Last Release

2732d ago

Major Versions

1.6.3 → 2.0.02017-11-19

2.0.0 → 3.0.02017-12-08

PHP version history (2 changes)1.3.0PHP &gt;=7.0.0

1.5.0PHP ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/f013869636e144de4543214232772d5e07d399ec61df8a586ba3e0df30a5b193?d=identicon)[Alexis Wurth](/maintainers/Alexis%20Wurth)

---

Top Contributors

[![awurth](https://avatars.githubusercontent.com/u/10026857?v=4)](https://github.com/awurth "awurth (306 commits)")[![s-n-i-p-e-r](https://avatars.githubusercontent.com/u/7798224?v=4)](https://github.com/s-n-i-p-e-r "s-n-i-p-e-r (1 commits)")

---

Tags

apieloquentframeworkjwtphprestskeletonslimvalidationapiframeworkrestslimeloquentoauthboilerplateSkeleton

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/awurth-slim-rest-base/health.svg)

```
[![Health](https://phpackages.com/badges/awurth-slim-rest-base/health.svg)](https://phpackages.com/packages/awurth-slim-rest-base)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k532.1M19.4k](/packages/laravel-framework)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M524](/packages/shopware-core)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[duxweb/dux-lite

The lightweight framework based on slim php

161.0k9](/packages/duxweb-dux-lite)[bitrix24/b24phpsdk

An official PHP library for the Bitrix24 REST API

10239.4k5](/packages/bitrix24-b24phpsdk)

PHPackages © 2026

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