https://github.com/php-client/tailscale
PHP Client for Tailscale API
https://github.com/php-client/tailscale
api client php saloon sdk tailscale
Last synced: 4 months ago
JSON representation
PHP Client for Tailscale API
- Host: GitHub
- URL: https://github.com/php-client/tailscale
- Owner: php-client
- License: mit
- Created: 2024-05-04T22:37:54.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-03-02T15:31:37.000Z (over 1 year ago)
- Last Synced: 2026-01-14T12:14:37.935Z (5 months ago)
- Topics: api, client, php, saloon, sdk, tailscale
- Language: PHP
- Homepage:
- Size: 89.8 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# PHP Client for Tailscale API.
## Installation
Install with Composer:
```bash
composer require php-client/tailscale
```
## Usage
Simple example:
```php
use PhpClient\Tailscale\Tailscale;
$tailscale = new Tailscale(
token: 'YOUR_API_TOKEN',
);
$response = $tailscale->api->devices()->listTailnetDevices(
tailnet: '-', // Default tailnet
);
foreach ($response->json('devices') as $device) {
echo $device['name'];
}
```
## List of available API methods
- Contact preferences
- Get|Update contacts
- Resend verification email
- Device invites
- List|Create device invites
- Get|Accept|Resent|Delete device invite
- Device posture
- List all posture integrations
- Create|Get|Update|Delete posture integration
- Users
- List users
- Get|Approve|Suspend|Restore|Delete user
- Update user role
- DNS
- List|Set DNS nameservers
- Get|Set DNS preferences
- List|Set DNS search paths
- Get|Update|Set split DNS
- Webhooks
- List webhooks
- Create|Get|Update|Delete|Test webhook
- Rotate webhook secret
- Devices
- List tailnet devices
- Get|Delete|Authorize device
- List|Set device routes
- Set device name|tags
- Update device key
- Set device IPv4 address
- Get device posture attributes
- Set|Delete custom device posture attribute
- Tailnet settings
- Get|Update tailnet settings
- Logging
- List configuration audit logs
- List network flow logs
- Get log streaming status
- Get|Set log streaming configuration
- Disable log streaming
- Policy file
- Get|Set policy file
- Preview rule matches
- Validate and test policy file
- Keys
- List tailnet keys
- Create|Get|Delete key
- User invites
- List|Create user invites
- Get|Delete|Resend user invite
## License
This package is released under the [MIT License](LICENSE.md).