TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The Yet Another Framework (Yaf), PHP extension for developing web applications

59 pointsby bgaluszkaover 13 years ago

15 comments

pornelover 13 years ago
Another framework full of thinly veiled global variables:<p><a href="http://uk.php.net/manual/en/class.yaf-registry.php" rel="nofollow">http://uk.php.net/manual/en/class.yaf-registry.php</a>
hieronymusNover 13 years ago
Since this is a PECL extension, and therefore compiled in C, I would love to see some performance information.
评论 #3195827 未加载
mweibelover 13 years ago
So, apart from being written as an extension (and maybe a little bit faster that way), what's the point of Yaf?
评论 #3195842 未加载
mknxover 13 years ago
&#62; Yaf require PHP version greater than 5.2.1, and could not run with early version of PHP.<p>No thanks. Closure? Namespace?
评论 #3195899 未加载
评论 #3195829 未加载
mgkimsalover 13 years ago
[me]# pecl remote-info yaf Package details: ================ Latest 2.1.3 Installed - no - Package yaf License PHP Category System Summary PHP Framework in PHP extension Description Yaf is a PHP framework similar to zend framework, which is written in c and built as PHP extension.<p><pre><code> Windows binaries can be found at &#60;a href="http://code.google.com/p/yafphp/downloads/list"&#62;http://code.google.com/p/yafphp/downloads/list&#60;/a&#62;</code></pre> [me]# pecl install yaf pecl/yaf requires PHP (version &#62;= 5.1.0, version &#60;= 5.3.6), installed version is 5.3.8 No valid packages found<p>So... 2.1.3 doesn't know how to work with 5.3.8. I'm not upgrading to 5.4.0 to test this right now. Any hacks to get around this?
hieronymusNover 13 years ago
Is the source for this anywhere like GitHub where it can be looked over?<p>EDIT: Appears to be on Google Code: <a href="http://code.google.com/p/yafphp/source/browse/" rel="nofollow">http://code.google.com/p/yafphp/source/browse/</a>
评论 #3195735 未加载
jaxnover 13 years ago
It is interesting that there are no models.<p>This seems to be a glorified front controller integrated with a templating engine.<p>It is really cool that they did this as a PECL extension. I had a PHP framework many years ago that we considered converting to a PECL extension (<a href="http://sourceforge.net/projects/cep/" rel="nofollow">http://sourceforge.net/projects/cep/</a>).
评论 #3196549 未加载
alastairpatover 13 years ago
It kind of reminds me of ASP.NET C# MVC, just glancing at the example page: <a href="http://au.php.net/manual/en/yaf.examples.php" rel="nofollow">http://au.php.net/manual/en/yaf.examples.php</a><p>Not being particularly proficient in PHP, is the 'Class myClass extends baseClass' syntax normal? I've never seen it before.
评论 #3195751 未加载
评论 #3195896 未加载
评论 #3196140 未加载
Werbaover 13 years ago
So use with blitz template engine as is extension<p><a href="http://alexeyrybak.com/blitz/blitz_en.html" rel="nofollow">http://alexeyrybak.com/blitz/blitz_en.html</a><p>You had blazing speed and performance
geeksamover 13 years ago
I'm loving the documentation: <a href="http://us3.php.net/manual/en/yaf-loader.clearlocalnamespace.php" rel="nofollow">http://us3.php.net/manual/en/yaf-loader.clearlocalnamespace....</a>
评论 #3197255 未加载
评论 #3196985 未加载
tszmingover 13 years ago
One of the good things is it is not using the PHP namespace, e.g. use Zend\Controller\Action\HelperBroker;
评论 #3200229 未加载
faricoover 13 years ago
When did they launch this?
评论 #3195732 未加载
solomonjamesover 13 years ago
Anyone else see that this looks almost identical to Zend Framework?
评论 #3196347 未加载
评论 #3197082 未加载
ivan_krechetovover 13 years ago
Why?
评论 #3195965 未加载
drivingmenutsover 13 years ago
I'll stick to CI, thanks.<p>This smells like another Zend product, and Zend framework was just a pain, in my experience.