inhere/slim-extend

This package is abandoned and no longer maintained. No replacement package was suggested.

A Slim Framework extension

v0.5.1 2017-06-03 16:59 UTC

This package is auto-updated.

Last update: 2021-05-29 02:06:51 UTC


README

Description

slim 3 extend to MVC structure.

Some Feature :

  • Global config, Environment support
  • Language support
  • Command support
  • Twig template engine
  • Flash Messages
  • Monolog
  • Pimple Dependency Injection Container
  • Controller layer for MVC
  • RESTFul Controller
  • Model layer, database query builder.
  • Tracy Errors Handler(by whoops)

Install

  • Use composer

edit composer.json

require add

"inhere/slim-extend": "dev-master",

run: composer update

Usage

generate class

support: model, command, controller

how to use:

php bin/console gen
php bin/console gen:model -h
  • a model
php bin/console gen:model name=rolePermission table=role_permission type=db fileds="id,int;name,string,名称;priority,int,级别;permissions,string,权限"

more see Document