轻量级 PHP 数据库驱动框架
我正在寻找一个具有以下特征的框架:
- 最好是 PHP 驱动
- 最好是 FOSS
- 轻便、简单
- 专注于快速原型设计而不是复杂的安全模型
- 能够半自动生成 HTML 表单,用于现有 SQL 的 GUI 界面数据库,给定一些 DDL,无需修改其结构
- 与 DBMS 无关,即与 PostgreSQL 一起工作,就像 MySQL 一样
我有相当多的 PHP 和 SQL 经验,但在这种情况下,我不想经历(重复)自己制作表格和登录系统的麻烦。我也不想仅仅为了完成这个任务而学习一门全新的语言(即 Ruby)。
任何建议都将受到欢迎。谢谢。
I'm looking for a framework that has the following characteristics:
- Preferably PHP-driven
- Preferably FOSS
- Light, simple
- Has a concentration on quick prototyping rather than complex security models
- Is able to semi-automatically generate HTML forms for a GUI interface to an existing SQL database, given some DDL, without modifying its structure
- DBMS-agnostic, ie., works with PostgreSQL just as well as MySQL
I have a reasonable amount of PHP and SQL experience, but in this case I don't want to go through the (repetitive) trouble of making the forms and login system myself. I'd also prefer not to have to learn an entire new language just to get this done (ie. Ruby).
Any suggestions would be welcome. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Lithium 和 Symfony > 基于 PHP 5.3,如果您需要命名空间和闭包,很快就会发布。 Symfony 可能对你来说有点大,但我仍然建议你看看它。 (它与 Zend 和大量其他东西配合得很好。)
或者尝试 Solar 或 YII。
还有其他的,例如 CakePHP(由 Lithium 的作者开发)、CodeIgnitor 等。但恕我直言,它们已经变得有点老了。
Lithium and Symfony are PHP 5.3 based and soon to be released if you want namespaces and closures. Symfony is probably a bit large for your sake, but I'd still recommend you look at it. (It plays well with Zend and tons of other stuff.)
Else try Solar or YII.
There are others, e.g. CakePHP (by the authors of Lithium), CodeIgnitor, etc. But they're becoming a bit old imho.
考虑到您提到的功能,它可能太轻量级了,但无论如何,它是一个非常好的微框架,值得了解:Limonade,http: //www.limonade-php.net 当涉及到原型设计时,它非常快,但它缺少 MVC 中的 M。不要害怕混合一些适合您需求的小库来形成功能齐全的轻量级 MVC 框架。
It's probably too lightweight, considering the features you mentioned, but anyways it's a really nice micro framework to know about: Limonade, http://www.limonade-php.net It's super fast when it comes to prototyping stuff, but it lacks the M in MVC. Don't be afraid to mix some little libraries that suit your needs to form a full featured lightweight MVC framework.
我使用 Zend-Framework 已经大约一年了。对于您的需求,Zend-Framework 完全是多余的。不过,我没有使用过 CakePHP-Framework,但我读过他们的介绍一两遍。由于 CakePHP 似乎比 Zend-Framework 轻得多,我建议您看一下 CakePHP:
http://cakephp.org/
我认为他们还提供了一个控制台驱动的工具,可以生成适合您的数据库表的视图、操作和表单。
I've been in Zend-Framework for about a year. For your needs, the Zend-Framework is totally overkill. However I've not worked with the CakePHP-Framework, but I read through their introduction once or twice. Since CakePHP seems to be much lighter than Zend-Framework I would suggest that you take a look at CakePHP:
http://cakephp.org/
I think they also provide a console-driven tool, which can generate views, actions and forms fitting your database-tables.
zend 框架也不错,codeigniter 和 cakephp
zend framework is good also codeigniter and cakephp