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.
- dev-master
- 1.6.0
- 1.5.9
- 1.5.8
- 1.5.7
- 1.5.6
- 1.5.5
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.9
- 1.4.8
- 1.4.7
- 1.4.6
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.8
- 1.3.7
- 1.3.6
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.9
- 1.2.8
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2
- 1.1.11
- 1.1.10
- 1.1.9
- 1.1.8
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.19
- 1.0.18
- 1.0.17
- 1.0.16
- 1.0.15
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-develop
- dev-workspace
This package is auto-updated.
Last update: 2025-03-09 12:14:44 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.