# mry-backend-hyperf **Repository Path**: SparkLee2017/mry-backend-hyperf ## Basic Information - **Project Name**: mry-backend-hyperf - **Description**: 本代码库为码如云后端代码(PHP协程框架Hyperf版本),码如云是一个基于二维码的一物一码管理平台,可以为每一件“物品”生成一个二维码,手机扫码即可查看物品信息并发起相关业务操作,操作内容可由你自己定义,典型的应用场景包括固定资产管理、设备巡检以及物品标签等。在技术上,码如云是一个无代码平台,全程采用DDD、整洁架构和事件驱动架构思想完成开发。 - **Primary Language**: PHP - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2023-08-25 - **Last Updated**: 2024-04-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Introduction This is a skeleton application using the Hyperf framework. This application is meant to be used as a starting place for those looking to get their feet wet with Hyperf Framework. # Requirements Hyperf has some requirements for the system environment, it can only run under Linux and Mac environment, but due to the development of Docker virtualization technology, Docker for Windows can also be used as the running environment under Windows. The various versions of Dockerfile have been prepared for you in the [hyperf/hyperf-docker](https://github.com/hyperf/hyperf-docker) project, or directly based on the already built [hyperf/hyperf](https://hub.docker.com/r/hyperf/hyperf) Image to run. When you don't want to use Docker as the basis for your running environment, you need to make sure that your operating environment meets the following requirements: - PHP >= 8.0 - Any of the following network engines - Swoole PHP extension >= 4.5,with `swoole.use_shortname` set to `Off` in your `php.ini` - Swow PHP extension (Beta) - JSON PHP extension - Pcntl PHP extension - OpenSSL PHP extension (If you need to use the HTTPS) - PDO PHP extension (If you need to use the MySQL Client) - Redis PHP extension (If you need to use the Redis Client) - Protobuf PHP extension (If you need to use the gRPC Server or Client) # Installation using Composer The easiest way to create a new Hyperf project is to use [Composer](https://getcomposer.org/). If you don't have it already installed, then please install as per [the documentation](https://getcomposer.org/download/). To create your new Hyperf project: ```bash $ composer create-project hyperf/hyperf-skeleton path/to/install ``` Once installed, you can run the server immediately using the command below. ```bash $ cd path/to/install $ php bin/hyperf.php start ``` This will start the cli-server on port `9501`, and bind it to all network interfaces. You can then visit the site at `http://localhost:9501/` which will bring up Hyperf default home page.