2017 © Pedro Peláez
 

library ministruts

Struts 1.2 inspired MVC web framework for PHP

image

rosasurfer/ministruts

Struts 1.2 inspired MVC web framework for PHP

  • Tuesday, July 31, 2018
  • by rosasurfer
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Build Status Scrutinizer Code Quality PHPStan Level, (*1)

MiniStruts

MVC micro framework for PHP inspired by Java Struts, (*2)

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., (*3)

V - The view component is realized by a layout engine which is inspired by the Struts Tiles plugin. Pages can be composed using re-usable layouts and HTML fragments. Both can be configured and extended as needed. Template language is pure PHP (no pre-compiling of HTML necessary)., (*4)

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)., (*5)

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..., (*6)


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., (*7)


Mini-Struts reference: struts-config.dtd, (*8)

ORM mapping reference: README.md, (*9)

The Versions

31/07 2018

dev-master

9999999-dev http://ministruts.rosasurfer.com/

Struts 1.2 inspired MVC web framework for PHP

  Sources   Download

WTFPL

The Requires

  • ext-ctype *
  • ext-json *
  • ext-mbstring *
  • php ^5.6

 

by Peter Walther

16/05 2018

0.8

0.8.0.0 http://ministruts.rosasurfer.com/

Struts 1.2 inspired MVC web framework for PHP

  Sources   Download

WTFPL

The Requires

  • ext-mbstring *
  • php ^5.6

 

by Peter Walther

16/05 2018

0.7.1

0.7.1.0 http://ministruts.rosasurfer.com/

Struts 1.2 inspired MVC web framework for PHP

  Sources   Download

WTFPL

The Requires

  • ext-mbstring *
  • php ^5.6

 

by Peter Walther

19/04 2018

0.7

0.7.0.0 http://ministruts.rosasurfer.com/

Struts 1.2 inspired MVC web framework for PHP

  Sources   Download

WTFPL

The Requires

  • ext-mbstring *
  • php >=5.6

 

by Peter Walther

19/04 2018

0.6.1

0.6.1.0 http://ministruts.rosasurfer.com/

Struts 1.2 inspired MVC web framework for PHP

  Sources   Download

WTFPL

The Requires

  • ext-mbstring *
  • php >=5.6

 

by Peter Walther

12/04 2018

0.6

0.6.0.0 http://ministruts.rosasurfer.com/

Struts 1.2 inspired MVC web framework for PHP

  Sources   Download

WTFPL

The Requires

  • php >=5.6

 

by Peter Walther

10/04 2018

0.5

0.5.0.0 http://ministruts.rosasurfer.com/

Struts 1.2 inspired MVC web framework for PHP

  Sources   Download

WTFPL

The Requires

  • php >=5.6

 

by Peter Walther

28/07 2017

dev-is6-facades

dev-is6-facades http://ministruts.rosasurfer.com/

Struts 1.2 inspired MVC web framework for PHP

  Sources   Download

WTFPL

The Requires

  • php >=5.6

 

by Peter Walther

30/04 2017

dev-is5-orm-magic-getters

dev-is5-orm-magic-getters http://ministruts.rosasurfer.com/

Struts 1.2 inspired MVC web framework for PHP

  Sources   Download

WTFPL

The Requires

  • php >=5.6

 

by Peter Walther