larva / hyperf-skeleton
A coroutine framework that focuses on hyperspeed and flexible, specifically use for build microservices and middlewares.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^7.4|^8.0
- ext-json: *
- hyperf/async-queue: ~2.2.0
- hyperf/cache: ~2.2.0
- hyperf/command: ~2.2.0
- hyperf/config: ~2.2.0
- hyperf/crontab: ^2.2
- hyperf/database: ~2.2.0
- hyperf/db-connection: ~2.2.0
- hyperf/framework: ~2.2.0
- hyperf/guzzle: ~2.2.0
- hyperf/http-server: ~2.2.0
- hyperf/logger: ~2.2.0
- hyperf/memory: ~2.2.0
- hyperf/model-cache: ~2.2.0
- hyperf/paginator: ^2.2
- hyperf/process: ~2.2.0
- hyperf/redis: ~2.2.0
- hyperf/resource: ^2.2
- larva/hyperf-settings: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- hyperf/devtool: ~2.2.0
- hyperf/ide-helper: ~2.2.0
- hyperf/testing: ~2.2.0
- mockery/mockery: ^1.0
- phpstan/phpstan: ^0.12
- swoole/ide-helper: ^4.5
Suggests
- ext-openssl: Required to use HTTPS.
- ext-pdo: Required to use MySQL Client.
- ext-pdo_mysql: Required to use MySQL Client.
- ext-redis: Required to use Redis Client.
This package is auto-updated.
Last update: 2024-11-17 22:11:08 UTC
README
开箱即用的 Hyperf API 基础结构。
自己用的哈,仅供参考,不提供咨询解答服务。
Requirements
- PHP >= 7.4
- Swoole PHP extension >= 4.5,and Disabled
Short Name
- OpenSSL PHP extension
- JSON PHP extension
- PDO PHP extension (If you need to use MySQL Client)
- Redis PHP extension (If you need to use Redis Client)
- Protobuf PHP extension (If you need to use gRPC Server of Client)
Installation using Composer
The easiest way to create a new Hyperf project is to use Composer. If you don't have it already installed, then please install as per the documentation.
To create your new Hyperf project:
$ composer create-project larva/hyperf-skeleton path/to/install
Once installed, you can run the server immediately using the command below.
$ 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.