PHPackages                             filipsedivy/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. filipsedivy/ntp

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

filipsedivy/ntp
===============

NTP reader

0.2(7y ago)05MITPHPPHP &gt;=7.1

Since Aug 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/filipsedivy/NTP)[ Packagist](https://packagist.org/packages/filipsedivy/ntp)[ RSS](/packages/filipsedivy-ntp/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

[![NTP reader](.github/logo.png)](.github/logo.png)

[![Build Status](https://camo.githubusercontent.com/b51dbc1c7470d26c5fabe4123ee15316f23fc5aca760c104394b0a891a0c8828/68747470733a2f2f7472617669732d63692e6f72672f66696c69707365646976792f4e54502e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/filipsedivy/NTP)

Introduction
------------

[](#introduction)

The NTP reader is a class for reading data from the NTP server over the UDP / TCP port. The class allows:

- read data from the NTP server
- transfer output data to the [Carbon library](https://github.com/briannesbitt/Carbon) for processing time

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

[](#installation)

The recommended way to is via [Composer](https://packagist.org/packages/filipsedivy/ntp):

```
composer require filipsedivy/ntp

```

It requires PHP version 7.1 and supports PHP up to 7.2.

### Tests

[](#tests)

To run the tests, you must run this command via Composer

```
composer test

```

Usage
-----

[](#usage)

```
$socket = FilipSedivy\NTP\Socket::create('europe.pool.ntp.org');
$datetime = FilipSedivy\NTP\Client::getDateTime($socket);

// Carbon library
echo $datetime->toDateTimeString();

// Alternatively DateTime functions
echo $datetime->format(...);
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Every ~0 days

Total

2

Last Release

2867d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5647591?v=4)[Filip Šedivý](/maintainers/filipsedivy)[@filipsedivy](https://github.com/filipsedivy)

---

Top Contributors

[![filipsedivy](https://avatars.githubusercontent.com/u/5647591?v=4)](https://github.com/filipsedivy "filipsedivy (16 commits)")

---

Tags

ntp-clientntp-protocolphp-reader

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/filipsedivy-ntp/health.svg)

```
[![Health](https://phpackages.com/badges/filipsedivy-ntp/health.svg)](https://phpackages.com/packages/filipsedivy-ntp)
```

###  Alternatives

[illuminate/support

The Illuminate Support package.

582110.9M40.0k](/packages/illuminate-support)[craftcms/feed-me

Import content from XML, RSS, CSV or JSON feeds into entries, categories, Craft Commerce products, and more.

292943.4k27](/packages/craftcms-feed-me)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

53675.5k16](/packages/solspace-craft-freeform)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40140.4k2](/packages/erlandmuchasaj-laravel-gzip)[japanese-date/japanese-date

日本の暦、祝日を取り扱うライブラリ

169.9k](/packages/japanese-date-japanese-date)[limingxinleo/hyperf-utils

Utils for Hyperf.

29136.4k3](/packages/limingxinleo-hyperf-utils)

PHPackages © 2026

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