PHPackages                             i-kostiuk/time4vps-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. i-kostiuk/time4vps-api

ActiveLibrary[API Development](/categories/api)

i-kostiuk/time4vps-api
======================

I have implemented 45% of the methods from the documentation at https://billing.time4vps.com/userapi. I plan to implement all the available functions in the near future. Please support me with your interest if you find this package useful.

v1.0(2y ago)66GPL-3.0-onlyPHP

Since Jun 2Pushed 2y ago1 watchersCompare

[ Source](https://github.com/i-kostiuk/time4vps-api)[ Packagist](https://packagist.org/packages/i-kostiuk/time4vps-api)[ RSS](/packages/i-kostiuk-time4vps-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

time4vps sdk
============

[](#time4vps-sdk)

I have implemented 45% of the methods from the documentation at . I plan to implement all the available functions in the near future. Please support me with your interest if you find this package useful.

Install:
========

[](#install)

`composer require i-kostiuk/time4vps-api `

- ##### laravel:

    [](#laravel)

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
```

- ##### php:

    [](#php)

```
use Time4Vps\Time4Vps;

require __DIR__ . "/vendor/autoload.php";

$client = new Time4Vps($username, $password);
```

Available methods:
==================

[](#available-methods)

### User Details

[](#user-details)

Return registration details for my account

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$details = $client->getDetails();
```

---

### Update User Details

[](#update-user-details)

Update registration details under my account

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$details = $client->setDetails([
        "type" => "typeValue",
        "companyname" => "companynameValue",
        "companyregistrationnumber" => "companyregistrationnumberValue",
        "vateu" => "vateuValue",
        "email" => "emailValue",
        "firstname" => "firstnameValue",
        "lastname" => "lastnameValue",
        "country" => "countryValue",
        "address1" => "address1Value",
        "city" => "cityValue",
        "state" => "stateValue",
        "postcode" => "postcodeValue",
        "phonenumber" => "phonenumberValue",
        "emarketing" => "emarketingValue"
    ]);
```

---

### List contacts

[](#list-contacts)

Return a list of contacts on this account

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$contacts = $client->getContacts();
```

---

### Get contacts details

[](#get-contacts-details)

Return array with contact details

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$contact = $client->getContactDetails($contact_id);
```

---

### List all portal notifications

[](#list-all-portal-notifications)

Return a list of all portal notifications.

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$notifications = $client->getNotifications();
```

---

### List new portal notifications

[](#list-new-portal-notifications)

Return only new portal notifications.

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$notifications = $client->getNotificationsNew();
```

---

### Acknowledge notification

[](#acknowledge-notification)

Marks the notification as read

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$notification = $client->markNotificationsAsRead($notification_id);
```

---

### Account balance

[](#account-balance)

Get current account balance(unpaid invoices total), account credit

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$balance = $client->getBalance();
```

---

### List Invoices

[](#list-invoices)

List all invoices under my account

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$invoices = $client->getInvoices();
```

---

### Invoice Details

[](#invoice-details)

Get invoice details

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$invoice = $client->getInvoice($invoice_id);
```

---

### Payment Methods

[](#payment-methods)

List available payment methods

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$payments = $client->getPayments();
```

---

### Payment Methods Fees

[](#payment-methods-fees)

List available payment methods with fees

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$payments = $client->getPaymentsFees();
```

---

### List services

[](#list-services)

List all services under your account

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$services = $client->getServices();
```

---

### Service label

[](#service-label)

Show current service label

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$service_label = $client->getServiceLabel($service_id);
```

---

### Change service label

[](#change-service-label)

Set new custom label to identify this service

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$response = $client->setServiceLabel($service_id, $new_label);
```

---

### List product categories

[](#list-product-categories)

Return a list of product categories.

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$categories = $client->getProductCategories();
```

---

### List products in category

[](#list-products-in-category)

Return a list of product available for purchase under requested category

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$products = $client->getProductsInCategory($category_id);
```

---

### Get product configuration details

[](#get-product-configuration-details)

Return product details with form configuration, addons and subproducts if available.

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$product = $client->getProductDetails($product_id);
```

---

### Get available VPS products

[](#get-available-vps-products)

List all available virtual private server products

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$vps_products = $client->getAvailableVps();
```

---

### List DNS

[](#list-dns)

Returns a list of all DNS

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$dns = $client->getDns();
```

---

### Get DNS details

[](#get-dns-details)

Returns details of the DNS zone

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$dns = $client->getDnsDetails($service_id, $zone_id);
```

---

### List SSL Certificates

[](#list-ssl-certificates)

List all ssl services under your account

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$certificates = $client->getCertificates();
```

---

### List All Servers

[](#list-all-servers)

Lists all active servers. Results includes only the brief information about the server. Call is synchronous - result returned immediately.

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$servers = $client->getServers();
```

---

### Server Details

[](#server-details)

Particular server details: configuration, installed OS, resource usage and etc. Call is synchronous - result returned immediately.

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$server = $client->getServerDetails($server_id);
```

---

### Available OS List

[](#available-os-list)

List of available OS templates for a server. Call is synchronous - result returned immediately.

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$server_os = $client->getServerAvailableOsList($server_id);
```

---

### Get additional IPs

[](#get-additional-ips)

List of additional IPs. Call is synchronous - result returned immediately.

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$server_ips = $client->getServerAdditionalIps($server_id);
```

---

### Get Usage History

[](#get-usage-history)

Displays the bandwidth usage of a server. Call is synchronous - result returned immediately.

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$history = $client->getServerUsageHistory($server_id);
```

---

### Get available init scripts

[](#get-available-init-scripts)

Script content is not included

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$scripts = $client->getScripts();
```

---

### Get init script by ID

[](#get-init-script-by-id)

Script content is included

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$script = $client->getScript($script_id);
```

---

### List VPN Servers

[](#list-vpn-servers)

Returns all available (including servers in maintenance) VPN servers.

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$vpn_servers = $client->getVpnServers();
```

---

### List VPN Clients

[](#list-vpn-clients)

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$vpn_clients = $client->getVpnClients();
```

---

### VPN login details

[](#vpn-login-details)

Returns oldest VPN plan login details, such as username, password, pre-shared key.

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$vpn_login_details = $client->getVpnLoginDetails();
```

---

### Get Usage History

[](#get-usage-history-1)

Displays the bandwidth usage of a VPN service.

- documentation:
- example:

```
use Time4Vps\Time4Vps;

$client = new Time4Vps($username, $password);
$vpn_usage_history = $client->getVpnUsageHistory($id);
```

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1072d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8b91110892d15ab35c0357c17b9c99093e52d9a607659bb086177ad1f430d5ca?d=identicon)[i-kostiuk](/maintainers/i-kostiuk)

---

Top Contributors

[![i-kostiuk](https://avatars.githubusercontent.com/u/135221853?v=4)](https://github.com/i-kostiuk "i-kostiuk (1 commits)")

---

Tags

apiphpsdk-phptime4vps

### Embed Badge

![Health badge](/badges/i-kostiuk-time4vps-api/health.svg)

```
[![Health](https://phpackages.com/badges/i-kostiuk-time4vps-api/health.svg)](https://phpackages.com/packages/i-kostiuk-time4vps-api)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
