网络“框架” Haxe 部署在 PHP 环境中?

发布于 2024-07-06 22:45:52 字数 387 浏览 13 评论 0原文

最近,我一直在研究 Haxe,构建一个部署到运行 PHP 的 Apache 的应用程序。 好吧,虽然看起来它可能适合我的需求(部署到 PHP,但不使用糟糕的语言),但我还没有发现任何东西可以使实际应用程序开发比构建传统的非 MVC PHP 应用程序更容易。 有没有我缺少的、值得的工具包/框架?

如果它是受 MVC 启发的,那就太好了,而且我肯定想要一种简单的方法来使用漂亮的 URL,尽管如果有必要,我可以满足 mod_rewrite 规则。

编辑:这个想法是在 PHP 端使用 CakePHP 之类的东西,而是在 Haxe 端使用 CakePHP 之类的东西。

Lately I've been taking a look at Haxe, to build an application to be deployed to Apache running PHP. Well, while it looks like it might suit my needs (deploying to PHP, but not using an awful language), I haven't found anything to make the actual application development easier than building a traditional non-MVC PHP app. Are there any toolkits/frameworks that I'm missing, that would be worthwhile?

It'd be nice if it were MVC inspired, and I'd definitely want an easy way to use nice URLS, though I could settle for mod_rewrite rules if necessary.

Edit: The idea is to not use something like CakePHP on the PHP end, but to instead use something like CakePHP on the Haxe end.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

十雾 2024-07-13 22:45:52

Haxe 有一个 PureMVC 端口: https:/ /github.com/PureMVC/puremvc-haxe-standard-framework/wiki

据我所知,这是 Haxe 唯一的事情,但是邮件列表上有关于创建自己的框架的讨论,但这可能需要一会儿。

There is a port of PureMVC for Haxe: https://github.com/PureMVC/puremvc-haxe-standard-framework/wiki

As far as I know this the only thing for Haxe, but there are discussions on the mailing list about creating a own framework, but this could take a while.

小猫一只 2024-07-13 22:45:52

我很高兴地说 haXigniter 已经完全重写,摆脱了 Marek 提到的 PHP 框架风格。 现在它更加遵循更好的 OO 原则,并且也是一个标准 haXe 库,因此升级更加简单。 请访问 http://github.com/ciscoheat/haxigniter 查看。

I'm happy to say that haXigniter has been completely rewritten, to get away from the PHP-framework-style as mentioned by Marek. Now it adheres much more to better OO-principles and is also a standard haXe library, so upgrades are much simpler. Please check it out at http://github.com/ciscoheat/haxigniter.

围归者 2024-07-13 22:45:52

我看到有人开始为 Haxe 开发一个名为“Hails”的 MVC 框架,尽管我不知道它是否可用。

冰雹:Haxe / PHP 的最小 Rails 启发 MVC Web 框架

http://code.google。 com/p/hails/

I see that someone is starting to develop an MVC framework for Haxe called "Hails", though I don´t know if it is usable yet.

hails: A minimal Rails-inspired MVC web-framework for Haxe / PHP

http://code.google.com/p/hails/

初相遇 2024-07-13 22:45:52

看看 HaXigniter,这是一个新人:

http://github.com/ciscoheat/haxigniter

Take a look at HaXigniter, a new kid on the block:

http://github.com/ciscoheat/haxigniter

安静被遗忘 2024-07-13 22:45:52

我会劝说你自己做。
上述框架(不包括 PureMVC)的问题在于它们是为特定语言设计的。
Haxigniter 是一个很好的副本,但它具有 PHP4 强制执行的架构。

这是一个很好的锻炼!
让你了解差异并找出底线机制 - 这非常重要,因为你的 haxe 代码将被翻译(所以你有双重抽象 1. 翻译 2. 框架,知道如何解决问题是件好事;])

I would recon you to do your own.
The problem with frameworks above (Excluding PureMVC) is that they were designed for particular language.
Haxigniter is a good copy, but it has the architecture that was kind of enforced by PHP4.

Its a good excersise!
Let's you understand the differences and work out bottomline mechanics - and this is very important as your haxe code will be translated ( so you have double abstraction 1. translation 2. framework its good to know how to work thing out ;])

紫﹏色ふ单纯 2024-07-13 22:45:52

还有ufront:

它适用于 php 和 neko。

There is also ufront:

It works with php and neko.

红衣飘飘貌似仙 2024-07-13 22:45:52

我正在为 NekoVM/PHP 开发基于 Haxe 的工具包/框架。 它还围绕 Zend Framework/Ruby-on-Rails-ish MVC 工作流程构建,并具有用于身份验证、缓存、表单验证、会话管理等的各种类。它可以编译为 NekoVM 和 PHP,我已经使用过这个库对于几个网站。 不幸的是,目前没有太多可用的文档,但我正在为即将发布的库的版本 1 进行相关工作。

该项目托管在 http://code.google.com/p/toolkat

I am working on a Haxe-based toolkit/framework for NekoVM/PHP. It is also built around a Zend Framework/Ruby-on-Rails-ish MVC workflow and has various classes for authentication, caching, form validation, session management etc. It can be compiled to both NekoVM and PHP and I have already used this library for a couple of websites. Unfortunately there is not much documentation available right now but I am working on that for the upcoming version 1 release of the library.

The project is hosted at http://code.google.com/p/toolkat

任性一次 2024-07-13 22:45:52


论坛常见问题解答(第 7 条),但列表和链接可能不再相关,因此以下是一些看似最新的修订清单。

但如果您只对 MVC 结构感兴趣,那么我怀疑更多的机器人腿类型方法可能会更好,并且注入也很有用。

See
forum FAQ ( 7th entry ), but the list and links may not be still relevant, so below is a revised list of some that seem current.

But if you are interested in just MVC structures then I suspect more robot legs type approaches maybe better, and injection is also useful.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文