tailscale / tailscale/tailscale-rs

bindings: tailscale-rs bindings for PHP

Open
#110 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement language support
Dominant language
Rust
Stars
1.2k
Forks
61
Avg merge
2d 13h
Merged PRs (30d)
22

Description

Is there any interest for PHP bindings? I implemented it today in a fork annieversary/tailscale-rs, mostly as an excuse to play around with this library.

It uses ext-php-rs to make a language extension which can be loaded and which contains the same methods the other FFI bindings do. It also uses php-tokio, amphp, and revolt for async. There's some things I'm not very sure about in the implementation (mainly the autoload.php), but it works well as is.

If there's interest in upstreaming this, I can polish it and open an actual PR. :)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing implementation in the annieversary/tailscale-rs fork on branch ts-php, including its ext-php-rs integration and autoload.php. Check how it uses php-tokio, amphp, and revolt for async behavior. Done means the binding is polished and an actual upstream pull request can be opened if the project wants it.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, rust
Domain
developer-experience
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.