PHP 功能增强库,用于普通 PHP
背景:有许多 PHP 插件都有一些不错的想法,但它们需要大量的时间或资源投资。 例如,有像 codeignighter 或 Smarty 模板这样的框架。
尽管有些人认为这些很有用,而另一些人则认为它们没那么有用,但毫无疑问,有很多项目旨在简化 PHP 开发,并将其“塑造”成新的形象。
问题:我想知道是否有任何框架不尝试“重新发明”PHP,但仍然添加一些不错的增强功能以使 PHP 稍微“改进”(例如,例如,使用“$haystack 和 $needle”参数组织本机 PHP 函数,以始终以相同的顺序获取参数,或者提供面向对象的字符串,这样您就可以执行以下操作:
print($MyName->toUpperCase()->trim());
基本原理:只是问问。
Background: There are numerous PHP addons out there that have some nice ideas, but they represent a significant investment in either time or resources. For example there are frameworks like codeignighter or Smarty templating.
Although some find these useful, and others find them not-so-much, there is no debating that there are a lot of projects out there intended to streamline PHP development, and "mold" it into a new image.
Question: I am wondering if there are any frameworks out there that do not try to "re-invent" PHP, but still add some nice enhancements for making PHP a little bit "improved" (such as, for example, organizing the native PHP functions with "$haystack and $needle" arguments to always take arguments in the same order, or providing object-oriented strings, so you can do things like):
print($MyName->toUpperCase()->trim());
Rationale: Just asking.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看 Kohana。 我并不是说它完全符合您的要求,但据称它是一个非常轻量级的框架。
Have a look at Kohana. I'm not saying it does exactly what you want, but it is allegedly a very light-weight framework.