PHPackages                             bt51/ntp - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. bt51/ntp

ActiveLibrary[HTTP &amp; Networking](/categories/http)

bt51/ntp
========

PHP library for interacting with ntp servers

0.1.0(12y ago)1259.5k↓33.3%41MITPHPPHP &gt;=5.3.3

Since May 13Pushed 12y ago2 watchersCompare

[ Source](https://github.com/bt51/ntp)[ Packagist](https://packagist.org/packages/bt51/ntp)[ Docs](https://github.com/bt51/ntp)[ RSS](/packages/bt51-ntp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (1)

NTP
===

[](#ntp)

---

Package ntp is a simple NTP client. It supports NTP version 4 and SNTP. Note that this client currently does not take network delay into account. This means the time that is received will not be accurate to the nanosecond.

Installation
------------

[](#installation)

---

Create a composer.json in your project

```
{
    "require": {
        "bt51/ntp": "dev-master"
    }
}

```

Read more on composer here:

Usage
-----

[](#usage)

Getting the current time from an ntp server is simple.

```
