nirix/

unframework

这不是一个框架。

dev-master 2016-04-13 02:27 UTC

This package is not auto-updated.

Last update: 2024-09-24 20:55:23 UTC


README

Unframework不是一个框架,它本质上只是一些类(大多数是静态的),用于处理初始化并将请求路由到特定的文件。

没有控制器,没有数据库模型,没有模板系统。

一个示例网站可以在app/目录中找到。

要求

  • 最新、积极支持、稳定的PHP版本

推荐

  • OPcache
  • PHP 7.0+

问题

但是,我想有控制器...

不,你不需要。

但是,我需要一个数据库...

PHP的PDO是最好的。

但是,我想有一个ORM来占用我的内存...

你做错了。学会写SQL,其实并不难。

但是,我想要Twig(或另一个模板系统)

你什么都不懂,John Snow。

不,我真的懂。

这就是你要的.

许可协议

Copyright (c) 2015 Jack P.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.