wangrunxinyes / whyperf-core
Requires
- php: >=7.3
- auron-consulting-oss/php-console-logger: v2.0.0
- hyperf/amqp: ^2.2
- hyperf/async-queue: 2.2.0
- hyperf/cache: 2.2.0
- hyperf/command: 2.2.0
- hyperf/config: 2.2.0
- hyperf/constants: 2.2.0
- hyperf/database: 2.2.0
- hyperf/db-connection: v2.2.0
- hyperf/framework: 2.2.0
- hyperf/guzzle: ^2.2
- hyperf/http-server: 2.2.0
- hyperf/json-rpc: 2.2.*
- hyperf/logger: 2.2.0
- hyperf/memory: 2.2.0
- hyperf/model-cache: 2.2.0
- hyperf/process: 2.2.0
- hyperf/redis: ^v2.2.0
- hyperf/rpc: 2.2.0
- hyperf/rpc-client: v2.2.0
- hyperf/rpc-server: v2.2.0
- hyperf/snowflake: ^2.2
- hyperf/tracer: 2.2.0
- hyperf/translation: ^2.2
- hyperf/validation: v2.2.0
- jonahgeorge/jaeger-client-php: ^1.4
- symfony/property-access: v5.2.4
- symfony/serializer: 5.2.7
Requires (Dev)
- friendsofphp/php-cs-fixer: v2.18.6
- hyperf/devtool: 2.2.0
- hyperf/testing: ^2.2.0
- mockery/mockery: 1.0
- swoole/ide-helper: 4.5
Suggests
- ext-json: Required to use JSON.
- 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: 2026-06-09 15:07:39 UTC
README
- add whyperf dir to scan path;
config -> autiload -> annotations.php
add
'scan' => [
'paths' => [
...,
\Whyperf\Whyperf::getPath(),
...,
]
]
- modify bin/hyperf
(function () { \Whyperf\Whyperf::getInstance()->run(); })();
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 hyperf/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.