subtext/app-engine 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

subtext/app-engine

Composer 安装命令:

composer require subtext/app-engine

包简介

Common code for bootstrapping a PHP web application

README 文档

README

A tiny framework for building PHP based web applications.

workflow

Installation

composer require subtext/app-engine

Provisioning

Create a directory named "config" in the root project directory. Copy the example.php and routes files from the config directory in the app-engine to the newly created config. The example.php file contains a sample PHP-DI container configuration. Edit this file to suit your needs. The example file uses the Twig template system. In order to use this, you would need to the Twig libraries with Composer. For more information see https://php-di.org/doc/

Edit the routes.php file to add a controller for any URL you want to create in your web application. The most basic addition is to add a controller for the home page of the application, like so:

$routes->add('root', '/')->controller(Controllers\HomeController::class);

You would then simply need to create the HomeController class extending from the Subtext\Base\Controller class. Add models and views as necessary to create any dependencies for your controllers as they will be the primary means of manipulating the application. For more information on configuring routes see: https://symfony.com/doc/4.3/components/routing.html

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-08-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固