Plugin request for Buf Schema Registry: protoc-gen-connect-php

Đang mở
#2,851 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

  • #2852 của @rastislavnemec — đã đóng, không merge

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, go, php
Lĩnh vực
api, build-system

Hướng nghiên cứu

This is a request to register a new remote plugin in the bufbuild/plugins repository, not a code change to the plugin itself. Review the existing plugin directories, such as the connectrpc/go entry, to see the expected layout of a plugin directory, its Dockerfile and plugin.sum. The author has said the files are ready and a PR will follow, so the work is reviewing that PR rather than writing the plugin.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Mandatory

Where is the source code for the plugin?

https://github.com/ftshp/connect-php/tree/main/cmd/protoc-gen-connect-php

The plugin is part of ftshp/connect, an unofficial PHP implementation of the Connect protocol (unary RPCs, PSR-18 client, PSR-15 server). For each service it generates a PHP interface and a client class next to the message classes from protocolbuffers/php. Streaming RPCs are skipped with a warning.

Optional

Does the plugin have a valid semver version?

v0.1.0, from the GitHub release: https://github.com/ftshp/connect-php/releases/tag/v0.1.0. Releases are tagged v* and built with goreleaser. go install github.com/ftshp/connect-php/cmd/[email protected] builds the same binary.

Does the plugin have a dependency on another plugin?

Yes, on protocolbuffers/php (https://github.com/protocolbuffers/protobuf/tree/main/php) for the message classes, like connectrpc/go on protocolbuffers/go. The generated code follows the namespace mapping and reserved-name rules of protoc-gen-php, so both plugins have to run on the same files.

Does the output of this plugin depend on any other external libraries?

Yes, the ftshp/connect Composer package (https://packagist.org/packages/ftshp/connect, Apache-2.0) and google/protobuf.

Proposed name: buf.build/community/ftshp-connect-php. The Dockerfile follows the connectrpc/go one (static Go build of the tagged module, scratch runtime, nobody user). I have the plugin directory and the plugin.sum files ready and will open the PR once this issue is in.

Ngôn ngữ chính
Dockerfile
Star
74
Fork
26
Merge trung bình
3 giờ 17 phút
Pull request đã merge (30 ngày)
74

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của bufbuild/plugins

Tất cả issue của bufbuild/plugins

Issue tương tự

Thêm issue về Backend & API Design

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.