hazaarlabs / hazaar-mvc
让PHP不再糟糕的MVC框架!
Requires
- php: >=5.6
Requires (Dev)
- phpunit/phpunit: >=9.3.0
- dev-master
- 2.6.1
- 2.6-stable
- 2.5.14
- 2.5.13
- 2.5.12
- 2.5.11
- 2.5.10
- 2.5.9
- 2.5.8
- 2.5.7
- 2.5.6
- 2.5.5
- 2.5.4
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5-stable
- 2.4.21
- 2.4.20
- 2.4.19
- 2.4.18
- 2.4.17
- 2.4.16
- 2.4.15
- 2.4.14
- 2.4.13
- 2.4.12
- 2.4.11
- 2.4.10
- 2.4.9
- 2.4.8
- 2.4.7
- 2.4.6
- 2.4.5
- 2.4.4
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4-stable
- 2.3.55
- 2.3.8
- 2.3.7
- 2.3.6
- 2.3.5
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.2
- 2.1.1
- 2.1.0
- dev-legacy
- dev-rate-limit-middleware
- dev-router_updates
- dev-278-feature-request-implement-surrealdb-database-backend-for-hazaar-mvc-orm
- dev-267-http-response-support-for-http-1-1-chunked-encoding
This package is auto-updated.
Last update: 2024-09-26 03:53:20 UTC
README
使用HazaarMVC启动和运行非常简单,只需几个基本步骤,具体取决于您所使用的操作系统。我建议使用Ubuntu Linux,因为Hazaar是在Ubuntu上开发的,因此它与它兼容。我已经尽力确保Hazaar具有跨平台兼容性,尤其是对Windows的支持,并且我现在每天都在Windows下进行开发,因此Hazaar MVC在Windows下已经非常稳定。
如果您遇到任何问题,请随时创建支持问题,以便在https://git.hazaar.io/hazaar/hazaar-mvc/issues上进行修复。
Hazaar MVC通过Composer安装,并通过Packagist提供。
使用Composer安装
Composer是一个流行的PHP依赖管理工具,主要用于简化项目依赖项的安装和更新。它会检查特定项目依赖于哪些其他包,并为您安装它们,使用符合项目要求的适当版本。
Composer可以在支持PHP的任何系统上运行。有关如何在您的系统上安装Composer的详细信息,请参阅http://www.getcomposer.org上的composer文档。
要测试您的安装,您可以从命令行运行composer命令
$ composer
您应该得到类似以下输出
______
/ ____/___ ____ ___ ____ ____ ________ _____
/ / / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
/_/
Composer version 1.0-dev (9859859f1082d94e546aa75746867df127aa0d9e) 2015-08-17 14:57:00
Usage:
command [options] [arguments]
Options:
--help (-h) Display this help message
--quiet (-q) Do not output any message
--verbose (-v|vv|vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
--version (-V) Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
--no-interaction (-n) Do not ask any interactive question
--profile Display timing and memory usage information
--working-dir (-d) If specified, use the given directory as working directory.
. . .
这意味着Composer已成功安装在您的系统上。
安装示例应用程序
由于Hazaar MVC是一个库,您需要创建一个依赖它的项目,以便Composer可以下载它。最简单的方法是安装示例骨架应用程序。这也会为您提供开发的起点。
您可以使用composer的一个命令来完成此操作
$ composer create-project hazaarlabs/example path/to/install
就是这样。您现在应该已经下载并准备就绪了示例应用程序和Hazaar MVC。现在您只需要设置您的Web服务器即可。
您现在可以阅读我们的在线文档,了解如何设置Web服务器以运行您的新应用程序。
测试您的新项目
由于我是一个好人,我让测试您的新项目变得非常简单,无需安装任何其他程序。您可以从新项目目录执行composer serve
命令来启动应用程序。
$ composer serve
此时,您可以通过在浏览器中导航到https://:8080来访问应用程序。
开始开发
快速了解Hazaar MVC的绝佳方法是阅读Hazaar MVC入门指南。
快速入门涵盖了Hazaar MVC最常用的组件。
贡献
如果您想参与其中,请联系support@hazaar.io!
许可证
本存档中的文件是根据Apache 2.0许可证发布的。您可以在LICENCE.md中找到此许可证的副本。