?? ?? ??? ?? Hyperf ?????? ???? ??
????? ???? ?? ??????? ?? ?? ??? ?? ? ????? ????. ?? ?? ??? ?? ?? ? ??? ???? ??? ??? ????? ??? ? ????. Hyperf ?????? Swoole ? PHP7? ???? ?? ??? ??????? ?????? ??? ??? ??? ?? ??? ? ?? ??? ?? ?? ?? ????? ?????.
? ????? ?? ?? ??? ?? Hyperf ?????? ???? ??? ???? ???? ?? ??? ?????.
1. ??
?? Hyperf ?????? ???? ???. Composer? ?? ??? ? ????:
composer require hyperf/hyperf
??? ???? ? Hyperf ????? ?? ? ????.
2. ?? ??
Hyperf ?????? .env ??? ?? ??? ????, ???? ??? ??? ??? ??? ? ????. ?? ???? ?? ????? .env ??? ????.
APP_NAME=Hyperf APP_ENV=dev APP_DEBUG=true DB_HOST=127.0.0.1 DB_PORT=3306 DB_USERNAME=root DB_PASSWORD=123456 DB_DATABASE=hyperf
? ??? ?????? ??(APP_NAME), ?? ??(APP_ENV), ?????? ?? ?? ? ?? ??? ?????. ??? ??? ??? ??? ?? ??? ? ????.
3. ?? ?? ???
Hyperf ???????? ?? ???? ???? ?? ??? ??? ? ????. ??, Environment ???? ????, HyperfContractStdoutLoggerInterface?? ????, HyperfContractStdoutLoggerInterface ?????? ???? ???. ?? ?? app/Service ????? ?? ???? ???? Environment ???? ??? ? ????.
<?php namespace AppService; use PsrContainerContainerInterface; use HyperfContractStdoutLoggerInterface; class Environment implements StdoutLoggerInterface { protected $container; public function __construct(ContainerInterface $container) { $this->container = $container; } public function output($messages, $type = self::INFO) { // 輸出日志到控制臺 } public function get($key, $default = null) { // 獲取環(huán)境變量值 return env($key, $default); } }
? ?????? PsrContainerContainerInterface? ???? ?????? ???? ????? ????. Environment ???? ?? ?? ???(output)? ?? ?? ?? ???? ???(get)? ?????. ? ? ???? ?? ?? ??? env() ??? ?????, ?? .env ???? ??? ?? ? ??.
4. ?? ??
???? Environment ???? Hyperf ????? ???? ???. config/autoload/di.php ??? ?? ?? ??? ?????:
return [ // ... HyperfContractStdoutLoggerInterface::class => function () { return new AppServiceEnvironment(HyperfUtilsApplicationContext::getContainer()); }, ];
??? ?? Environment ???? Hyperf ????? ???? ?? ??? ??? ? ????.
5. ?? ??
?? ???? .env ??? ??? ??? ??? ? ????. ?????? ??? ?? ?? ????? ?? ??? ????? ?? ??? ???? ??? ?? ? ????.
<?php namespace AppController; use HyperfDiAnnotationInject; use HyperfContractStdoutLoggerInterface; class IndexController extends AbstractController { /** * @Inject * @var StdoutLoggerInterface */ protected $environment; public function index() { $dbHost = $this->environment->get('DB_HOST'); $dbPort = $this->environment->get('DB_PORT'); $dbUsername = $this->environment->get('DB_USERNAME'); $dbPassword = $this->environment->get('DB_PASSWORD'); $dbDatabase = $this->environment->get('DB_DATABASE'); // 使用數(shù)據(jù)庫配置進(jìn)行連接 } }
?? ???? ?? ???? get ???? ???? . env ??? ???? ?????.
6. ?? ??
?? ? ?? ??? ?? ???? ???? ???. Hyperf ?????? ??? ??? ?? ??? ???? .env ??? APP_ENV ??? ?????. .env ??? APP_ENV ??? ???? ??? ??? ??? ??? ? ????.
?? ?? .APP_ENV=dev? APP_ENV=prod? ???? ???? ???? ??? ? ????. ?? ?? Hyperf ???? ?? ???? ???? ??? ??? ?????.
??:
Hyperf ?????? ?? ?? ?? ????? ?? ??? ??? ??? ?? ???? ??? ??? ?? ???? ??? ?? ? ????. .env ??? ??? ?? ??? ??? ?? Environment ???? ???? ??? ?????. ? ?? ?? ?? ??? ?? ? ?? ???? ?? ?? ???? ??????? ???? ?? ???? ?? ???? ? ????.
? ??? ?? ?? ??? ?? Hyperf ????? ??? ?? ?? ? ?? ?????.
? ??? ?? ?? ??? ?? Hyperf ?????? ???? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

DirectX ?? ??? ?? ???? DirectX ??? ???? ?? ??? ???, ??? ???? ?? ??? ? ????. DirectX ?? ??? ???? ??? ??? ???? ?? ? ????. ??? ??? ????? ???????. 1. ?? ?? ?????? ???? ?? ??? ?????. 2. ??? ??? ? C++ ?? ??? ????? ??? ??? ???? ???? ?? ??? ??? ? ?? ?? ???? ?????. 3. ?? ??? ???? ??? ??? ? ?? ?? ??? ?????. 4. ??? ??? ? ?? ???? ?????. 5. ?? ?? ??? ??? ??? ??? ??? ???? ??? ??? ??? ????? ???? ?? ??? ? ? ????.

HTTP 525 ?? ?? ??: ?? ? ??? ?? HTTP(HypertextTransferProtocol) 525 ?? ??? SSL ????? ???? ?? ??? ??? ???? ?? ??? ??? ? ??? ?????. TLS(?? ?? ??) ????? ?? ??? ???? ??? ? ?? ??? ?????. ? ?? ??? ?? ?? ??? ??? ????? ?? ?? ?? ?? ??? ?????. ?????? HTTPS? ?? ??? ??? ???? ???? ?? ?? ????.

?????? ?? ??? ??? ???????, ??? ?? ???? ????? ???? ??? ????. ??? ?? ??? ??? ???? ?? ???? ????? ???? ??? ???????. 1. PotPlayer ??? PotPlayer ????? ?? ?? ???? ??? ????. (1) ??/?? ??: ???? (2) ??: ??? ?, ?? ??? ? (3) ???/??: ?? ? ??? ??? ? (4) ???: P-??? ??, H-View ??? (5) ????/??: Enter (6) ??: C-??, 7) ??/?? ???: D/

??? Baidu Netdisk ???? ??? ???? ???? ???? ???? Baidu Netdisk ???? ??? ??????. ???? ??? ???? ????? ??? ? ????. 1??: Baidu Netdisk? ??? ? ?? ??????(?? ??). 2??: ?? ?? ??? ????? ?? "? ??" ? "?? ??"? ?????(?? ??). ?? ??"? ???? ??? ??? ???? ?? ??? ? ????(?? ??). 4??: ?? ?? "??"? ??? ?? ??? ???? ???? ??? ??? ?????(?? ??). ?? ?? 1??: ?? ?? ??? ?? ? ????(?? ??). 6??: "?? ?? ??"(?? ??)?? ??? ??? ?? ?? ????. ? ??? ???? ?????.

Win11 ???? ?? Windows ?? ????? ???? ?? ??? ? ?? ?? ??? ??? ? ????. ? ???? Python ?? ??? ???? ?? ???? ?? ????? Python ??? ?? ??? ? ??? ?? ??? ???? ?? ?????. ?? ???? ???? Python ????? ??? ?? ???? ??? ? ??? Win11 ????? Python ?? ??? ???? ??? ?????. 1. ?? ???? ? ???? [??? ??? ???? ??]?? ??? ?? ???? [??]? ?????. 2. ?? ?? ?? ???? [?? ??? ??]? ?? ?????. 3. ??? ?? ??? ?? ??]?? [??]? ?????. 4. ?? ?? ?? ??? ???? [??]? ??? ? ?????.

KMS ?? ?? ??? Microsoft Windows ? Office ??? ?? ???? ? ???? ????? ?????. KMS? KeyManagementService? ??? ? ?? ??????. KMS ?? ?? ??? ???? ?? KMS ??? ???? Windows ? Office ??? ?? ??? ? ??? KMS ??? ??? ????????. KMS ??? ??? ??? ?? ??? ?????. ? ?? ???? ????? ???? ? ???, ???? ???? ??? ?? ??? Windows ???? Office ?????? ???? ? ????. ??? ?? ?????? Windows ?? ?? ??? ???????. KMS ?? ?? ??? ???????.

?? ????? Xiaoma win7 ??? ??? ???? ??? ?????. ??? Xiaoma win7 ??? ??? ???? ??? ?? ????? ????, ?? ??? ?? ??? ?? ???? Xiaoma win7 ??? ?? ?? ??? ???? ????. ?? ??? ?? ???. ? ?? ??? ???? ???? ? "? ???"? ???? ?? ??? "??? ??"? ???? Windows ?? ?? ??? ???? ????. ? ?? ????? ???? ????? win7 ??? ??? ?????? ???? ???(???? ?? ???? ??? ? ??). ? ?? ??? Xiaoma ??? ??? ?? "Windows ?? ???"? ???? ????. ? ?? ??? ??? ????? ???? ??? ??? ???? ????. 5??: Windows ?? ?? ??? ?? ???? ???? ?? ?????? ?????.

? ??? ???? ???? ?? ?? ???? ???? ???? ??? ???? ?? ??? ????. ? ??? ??? ?? ?? ??? ?? ???? ???? ????? ?? ?? ??? ???? ? ?? ???? ?????. Microsoft Excel ? Google Sheets? ?? ?? ?????? ??????? ? ?? ??? ?? ???? ???? ?? ??? ? ????. ??? ? ? ??????? ?? ???? ??? ???? ?????. ????
