当前位置:Gxlcms > PHP教程 > SlimFramework3骨架更快的撸一个WebApp

SlimFramework3骨架更快的撸一个WebApp

时间:2021-07-01 10:21:17 帮助过:22人阅读

基于 Slim Framework 3 构建的骨架,快速开发轻量级 Web App 。

以基本实现了 Authentication 可作为开发例子或改造属于你自己的果实。

你可以用 Laravel 的 Homestead 运行,各种环境各种运行,不多说,拉下去看看,就这么简单。

GitHub Stared This: https://github.com/HavenShen/slim-born

Installation

composer create-project havenshen/slim-born [my-app]

Use Packages

  • illuminate/database- It also serves as the database layer of the Laravel PHP framework.
  • Respect/Validation- The most awesome validation engine ever created for PHP.
  • slimphp/Slim- Slim Framework created.
  • slimphp/Slim-Csrf- Slim Framework created.
  • slimphp/Twig-View- Slim Framework created.
  • slimphp/Slim-Flash- Slim Framework created.

Directory Structure

|-- slim-born	|-- app		|-- Auth		|-- Controllers		|-- Middleware		|-- Models		|-- Validation		|-- Routes.php	|-- bootstrap		|-- app.php	|-- public	|-- resources	....

人气教程排行