????? ? ??? ?? ??? ?? Hyperf ?????? ???? ??
Oct 21, 2023 am 11:23 AM?????? ??? ?? ??? ?? Hyperf ?????? ???? ??
???? ??? ??? ?? ?????? ??? ?? ?? ??? ??????? ?? ? ?? ??? ?? ????. . ? ?? ???? ??? ??? ??? ?? ? ??? ?? ??? ???? ? ??? ??? ?? ? ???? ??? ?????. ? ????? ????? ? ??? ?? ??? ?? Hyperf ?????? ???? ??? ???? ???? ?? ??? ?????.
- ?? ??
?? PHP? Composer? ???? ???. ?? ?? Composer? ???? ?? ???? Hyperf ?????? ????? ?????.
composer global require hyperf/hyperf-skeleton
??? ??? ? ?? ??? ???? ? Hyperf ????? ??? ? ????.
composer create-project hyperf/hyperf-skeleton your-project-name
- ???? ???
Hyperf?? ??????? ????? ??? ???? ??? ??? ???? ?? ?????. ?? ??? ???? ? ????? ?? ? ????.
php bin/hyperf.php gen:controller DemoController
??? ?? app/Controller ????? DemoController?? ???? ??? ?????. ? ????? ??? ??? ???? ?? ??? ????? ???? ??? ? ????.
??? JSON ???? ??? ???? ??? ???? ??? ?? ?????.
<?php declare(strict_types=1); namespace AppController; use HyperfDiAnnotationInject; use HyperfHttpServerAnnotationAutoController; use HyperfHttpServerAnnotationMiddleware; use HyperfHttpServerAnnotationMiddlewares; use HyperfHttpServerContractRequestInterface; use HyperfHttpServerContractResponseInterface; /** * @AutoController(prefix="demo") * @Middlewares({ * @Middleware(AppMiddlewareAuthMiddleware::class), * }) */ class DemoController { /** * @Inject * @var RequestInterface */ private $request; /** * @Inject * @var ResponseInterface */ private $response; public function index() { $data = [ 'message' => 'Hello World', ]; return $this->response->json($data); } }
? ?? ????? $response->json()? ???? index?? ????? ???? ?????. ? ???? ??? ?????. JSON ????.
- ????? ??? ???
?????? ???? ??? ??????? ??? ?????? ??? ? ??? ????? ??? ????? ??? ???? ???. Hyperf? ????? ??? ???? ??? ? ?? Swagger ?? ??? ?????. ?? ??? ???? Swagger ?? ??? ??? ? ????.
composer require hyperf/swagger
?? ?? config/autoload ????? swagger.php ?? ??? ???? Swagger ?? ??? ?? ??? ?????.
<?php use HyperfSwggerAnnotation as Swgger; /** * Class DemoController * * @SwggerApi(tags={"Demo"}) */ class DemoController { /** * @SwggerGet(path="demo/index") * @SwggerResponse(code=200, description="成功", @SwggerSchema(ref="#/definitions/Hello")) */ public function index() { $data = [ 'message' => 'Hello World', ]; return $this->response->json($data); } }
? ?? ????? ??? ?????. ??? ???? ?? Swagger ?? ? ???? ????? ??, ?? ?? ? ?? ??? ??? ?? ??? ?????.
- Hyperf ??? ??
???? ? ????? ??? ??? ???? ?????? ?????? ?? ???? ??? ? ??? Hyperf ???? ???? ???.
?? ??? ???? Hyperf ???? ?????.
php bin/hyperf.php start
- ??? ??? ??? ?????? ?????.
Hyperf ???? ????? ???? ??? ?? ???? ?? ?? ??? ?????? ??? ? ????. ????? ???. JavaScript, Vue.js, React ?? ?? ????? ??? ??? ? ????.
??? JavaScript? ???? ??? ?????? ???? ??? ???? ??? ?? ?????.
fetch('http://localhost:9501/demo/index') .then(response => response.json()) .then(data => console.log(data));
? ?? ????? fetch ??? ???? GET ??? ??? json() ???? ???? ?? ???? ??????.
??
? ??? ?? Hyperf ?????? ???? ?????? ??? ??? ??? ? ????. ???? ??? ??? ???? ?? ???? ?? ????? ??? ????, ????? ??? ?? ??? ?????? ??? ? ????. 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)

??? ??











? AI ?? ????? ??? ??? AI ?? ???? ??? AI ?? ????? ??? ?? ??????. AI ?? ????? ??? ?? ???? ???, ?? ??? ?????, ?? ???? ?? ? ????. ?? ?? ????? ?? ?????? ??? ??????. ?? Dayao? 4?? AI ?? ????? ??(?? C# ?? ??)? ???????. ? ??? ?? ???? ??? ??? ????. https://github.com/YSGStudyHards/DotNetGuide1.GitHubCopilotGitHubCopilot? ? ??? ?? ???? ??? ???? ? ??? ?? AI ?? ?????? ?? ??? ??? ? ??? ? ????. ??

?? ??? AI ????? ??(Devin)? ??? ? ? ?? ? ? ? 2022? 3? 3?, ???? ??? NLP?? ???? AI ????? SWE-????? ??????. GPT-4 ??? ???? GitHub ?????? ??? ???? ?????. SWE-bench ??? ???? SWE-agent? ??? Devin? ???? ?? 93?? ??? ??? 12.29%? ?????. SWE-agent? ?? ???? ?? ???? ?? ??? ?? ????, ?? ?? ??? ????, ?? ?? ????, ???? ?? ? ??? ? ????. (??: ? ??? ?? ??? ?? ??? ???? ??? ?? ??? ??? ???? ??? ?? ? ??? ???? ????.) SWE-A

Go ?? ?? ??? ?????? ???? ??? ?????? ??? ????? ???? ?? ?? ? ?? ???? Go ??? ???? ??? ??????? ???? ??? ???? ??????. ???? ???? ????? ??? Go ??? ??? ?????? ????? ??? ???? ???????. ? ????? Go ??? ???? ??? ??????? ???? ??? ??? ???? ??? ??? ???? ??? ??? ?????? ??? ??? ? ??? ?? ?? ??? ?????. 1. ?? ???? ?? ?? ??? ??? ???? ???. ??

??? ???? ????? ??? Go ??? ??? ?? ???? ?? ?????. ??? Go ??? ????? ??? ????? ??? ?? ????. ??? ????? ??? Go ??? ???? ???? ??? ?? ??? ????? ??? ??? ??? ?? ????. ? ????? ????? ??? Go ??? ??? ? ?? ???? ???? ??? ? ??? ? ? ??? ? ??? ???? ?? ??? ?????. ???? ????? ????? ??? ?????? ???? ?? JavaScript, HTML, CSS? ???? ??? ????.

?? ?? ?? ?? ?? Go ?? ????? ??: Go ??? ?? ?? ???? ??? ??? ??????. ??? ???? ????? ??? ????? ??? Go? ??? ??? ??? ?? ?? ?????? ??? ???? ?????. ? ????? ?? ?? Go ?? ????? 5?? ?????. ??? ?????? Go ???? ??? ??? ?? ????? ??? ??? ??? ?? ??? ?????. ??? ??? ?????? ??? ??? ? ? ???? ?? ???? ?? ??? ?? ???????.

Android ??? ??? ???? ????, ??? ??? Linux ???? ???? ?? ?? ?????. ?? Linux ??? ??? Android ??? ?? ??? ???? ?????? ? ????? ? ??? ?? ???? ???? ???? ?? ??? ?????. ?? ?? ?? ?? ?? Linux ???(Ubuntu, Fedora, Debian, CentOS ?)? ???????. ??? ?? ??? ??? ??? ??? ????.

VSCode? ????? ?? ???? ???? ???? ???? ?? ?? ?? ?? ??????. ??? ???? ?? ??? ???? ?? ??? ????? ??? ?????? ?????. ??? VSCode? ??? ??????? ?? ? ????. ? ????? ??? ????? ???? VSCode? ?? ???? ?? ???? ?? ?? ??? ?????. 1.ReactReact? ??? ?????? ???? ? ???? ?? ?? JavaScript ????????. React? ???? ????? ??? ?,

Java ?? ?? ??: Java ?? ?? ?? ??? ?? ??? ??, ??? ?? ?? ?? ??? ?? ? ??? ???? Java ??? ?? ?? ???? ????? ?? ? ??? ?????. ??? ???? ?? ??? ??? ?? ??? ?? ????? ???? ??? ?????. ??? ?? Java? ???? ?? ?? Java Virtual Machine(JavaVirtualMachine, JVM)? ???? ???. ? ????? JVM(Java Virtual Machine)? ?? ??? ??? ???? ???? ?? ??? ?????.
