PHPackages                             hezecom/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. [Database &amp; ORM](/categories/database)
4. /
5. hezecom/slim-starter

ActiveProject[Database &amp; ORM](/categories/database)

hezecom/slim-starter
====================

Slim Framework 4 Starter App

v1.0(4y ago)9933MITHTMLPHP ^7.4 | 8.\*

Since Oct 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/hezecom/slim-starter)[ Packagist](https://packagist.org/packages/hezecom/slim-starter)[ Docs](https://github.com/hezecom/slimapp)[ RSS](/packages/hezecom-slim-starter/feed)WikiDiscussions main Synced 4w ago

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

Slim Framework 4 Starter App
============================

[](#slim-framework-4-starter-app)

> Slim Framework 4 skeleton MVC application with build in authentication system.

Features
--------

[](#features)

- Light weight and organised for easy understanding.
- Simple, fast routing engine.
- Highly secured, ready to use authentication system.
- Simplify helper function for faster development.
- Build in email notification.
- Build in email templates (can easily be modified)
- PSR-7 implementation and PHP-DI container implementation
- Detailed HTML error reporting.

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

[](#requirements)

- PHP 7.4 | 8.0+
- PDO PHP Extension
- Suport MySQL 5.5.3+ **or** MariaDB 5.5.23+ **or** PostgreSQL 9.5.10+ **or** SQLite 3.14.1+ ...

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

[](#installation)

```
composer create-project "hezecom/slim-starter v1.0" [my-app]
```

**`Database (Required for auth to work)`**

- Create a database or use existing database to import/copy to your SQL console to create required tables for the authentication.
- Dasbase option (MySQL, SQLite or PostgreSQL)
- Database file is located at **/`database`**

.env
----

[](#env)

Copy file .env.example to .env

```
DB_DRIVER=mysql
DB_HOST=localhost
DB_DATABASE=slimapp
DB_USERNAME=root
DB_PASSWORD=
DB_PORT=3306

# Email setting Driver = (smtp | sendmail | mail)
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=username
MAIL_PASSWORD=password
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS='info@example.com'
MAIL_FROM_NAME='Example'

```

Router
------

[](#router)

Routing example below

```
