Skip to content
This repository has been archived by the owner on Dec 4, 2022. It is now read-only.
/ slim3-flex Public archive

A Slim 3 boilerplate using the league/container. Structure inspired from Laravel.

Notifications You must be signed in to change notification settings

fidanf/slim3-flex

Repository files navigation

Slim 3 Flex

A Slim 3 starter structure inspired from Laravel.

The architecture is about using phpleague's Container package rather than the original Container of Slim. That way, it offers a tidy and clean way to import additionnal bricks/features for your next Slim webapp or rest API

Features

  • Data access using Laravel's Eloquent ORM
  • Rendering views and paginating with Twig. Also supports sharing services globally across views.
  • Basics of authentication workflow : user registration, login, logout, remember me, authorizations for routes through middlewares.
  • Services and dependencies loaded using Providers, allows autoloading exposed classnames/aliases from inside other classes.
  • Separated, easy to setup app configuration files inside config/ folder
  • Seeds and migrations using Phinx
  • Email sending using Swiftmailer

Various already implemented features : form validation, password hashing, session storage, csrf protection, ...

Upcoming

  • Events and listeners
  • A logger service using Monolog
  • Filesystem service
  • Facades
  • Console commands

Run commands

composer install
./vendor/bin/phinx migrate

If you wish to rollback to the last migration, do :

./vendor/bin/phinx rollback

Serving the project locally using PHP's internal webserver :

php -S localhost:<port> -t public/

About

A Slim 3 boilerplate using the league/container. Structure inspired from Laravel.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published