twirp
PHP port of Twitch's Twirp RPC framework
파일 탐색기
최종 버전 다운로드 (.zip)- .gitattributes
- .gitignore
- generate.go
- go.mod
- go.sum
- lint.go
- main.go
- tests.go
- tests_e2e.go
- versions.go
- versions_pinned.go
- bug_report.yaml
- config.yml
- feature_request.yaml
- artifacts.yaml
- ci-depot.yaml
- ci.yaml
- release.yaml
- static.yaml
- .editorconfig
- dependabot.yaml
- PULL_REQUEST_TEMPLATE.md
- SECURITY.md
- SUPPORT.md
- custom.css
- highlight.css
- http-headers.rst
- other-services.rst
- psr15.rst
- best-practices.rst
- installation.rst
- overview.rst
- usage.rst
- .gitignore
- conf.py
- index.rst
- make.bat
- Makefile
- requirements.txt
- spelling_word_list.txt
- Haberdasher.php
- .gitignore
- client.php
- README.md
- server.php
- service.proto
- BaseServerHooks.php
- CanEmitJsonDefaults.php
- ChainServerHooks.php
- Context.php
- Error.php
- ErrorCode.php
- Router.php
- Server.php
- ServerHooks.php
- ServerWithPathPrefix.php
- BaseServerHooksTest.php
- ChainServerHooksTest.php
- ContextTest.php
- ErrorCodeTest.php
- RouterTest.php
- ServerTest.php
- generator.go
- template.go
- func.go
- comment.go
- name.go
- global.go
- TwirpError.php.tmpl
- _Service_.php.tmpl
- AbstractClient.php.tmpl
- Client.php.tmpl
- JsonClient.php.tmpl
- Server.php.tmpl
- service.go
- main.go
- logo-dark.png
- logo.png
- clientcompat.proto
- compat.php
- compat.sh
- run.sh
- Haberdasher.php
- HaberdasherFunctionalTest.php
- HaberdasherJsonClientTest.php
- HaberdasherServerTest.php
- Psr15HttpClient.php
- ServerHooksErrorStub.php
- TwirpErrorTest.php
- phpunit.xml.dist
- run.sh
- service.proto
- run.sh
- service.proto
- test.php
- run.sh
- service.proto
- .gitignore
- .dockerignore
- .editorconfig
- .envrc
- .gitattributes
- .gitignore
- .golangci.yaml
- .goreleaser.yaml
- .php-cs-fixer.dist.php
- .yamllint.yaml
- ADOPTERS.md
- CHANGELOG.md
- composer.json
- dagger.json
- flake.lock
- flake.nix
- go.mod
- go.sum
- install.sh
- LICENSE
- LICENSE_THIRD_PARTY
- Makefile
- phpstan-baseline.neon
- phpstan.neon.dist
- phpunit.xml.dist
- psalm.xml
- README.md
- TWIRP_VERSION
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/twirphp/twirp
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd twirp
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. PHP (Composer)
쉬움 추천사전 준비물
composer install
composer.json에 명시된 PHP 라이브러리를 설치합니다.
php -S localhost:8000 같은 내장 서버로 실행한 뒤 브라우저에서 http://localhost:8000 으로 접속해보세요.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
3. Go
보통cd .dagger
이 프로젝트의 관련 파일이 하위 폴더 안에 있어서, 먼저 그 폴더로 이동합니다.
go build ./...
Go 프로그램을 컴파일해 실행 파일을 만듭니다.
go run .
따로 빌드하지 않고 바로 Go 프로그램을 실행합니다.
빌드가 에러 없이 끝나면 성공입니다. go run . 을 썼다면 터미널 출력을 확인하세요.
4. Make
보통사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Make Linux/macOS는 보통 기본 설치되어 있습니다. Windows는 별도 설치(예: MSYS2, WSL)가 필요합니다.
make generate
생성된 빌드 설정을 바탕으로 실제 컴파일을 진행해 실행 파일을 만듭니다.
make check
생성된 빌드 설정을 바탕으로 실제 컴파일을 진행해 실행 파일을 만듭니다.
에러 없이 끝나면 성공입니다. 생성된 실행 파일을 직접 실행해보세요.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
// repository documentation
Was this content helpful?
(0 ratings)
