rosasurfer/ministruts 问题修复 & 功能扩展

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

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

rosasurfer/ministruts

最新稳定版本:0.12

Composer 安装命令:

composer require rosasurfer/ministruts

包简介

MVC micro framework for PHP inspired by Java Struts

README 文档

README

Build Status PHPStan Level

MiniStruts

MVC micro framework for PHP inspired by Java Struts

M - The basis of the model component is an ORM. The ORM is implemented as "DataMapper" and follows the "database first" approach. This approach is primarily intended for working with existing databases. The implementation requires neither code generation nor proxy classes (no surprises from code you didn't write). As long as tables have primary keys, any standard or non-standard db model can be connected and customized. The configuration is done in pure PHP (no annotations or attributes). The ORM is inspired by Hibernate.

V - The view component is realized by a layout engine inspired by the Struts Tiles plugin. Pages can be assembled from reusable layouts and HTML fragments. Both can be configured and extended as needed. The template language is pure PHP (no pre-compilation of HTML necessary).

C - The controller part is comprised of application framework, configuration, service container, access control, caching, error handling and logging. The web stack of the framework was inspired by Java Struts 1. Version 1 had long since been superseded by its successor and was practically no longer used. But in 2022 developers decided to revive it because of its simplicity and solidity, and to adapt it to current web standards. Long live Struts...

The project includes a special feature for command line interfaces that is worth mentioning: a syntax parser for the DocOpt standard, which is well known in the Linux/Python world, but little known in the PHP universe. The DocOpt standard uses the syntax description of the tool itself to define call options. At runtime, the syntax description is parsed and validated against the current call. The result are beautiful syntax definitions even for more complex tools (no more ugly Symfony error messages). Examples are here, or you can try out the online parser here.

MiniStruts XML reference: struts-config.dtd

ORM mapping reference: README.md

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unlicense
  • 更新时间: 2022-09-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固