Download the PHP package quasarstream/ntp without Composer
On this page you can find all versions of the php package quasarstream/ntp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download quasarstream/ntp
More information about quasarstream/ntp
Files in quasarstream/ntp
Package ntp
Short Description The NetworkTimeProtocol class provides utility methods for working with NTP (Network Time Protocol) timestamps in PHP.
License BSD-3-Clause
Homepage https://www.quasarstream.com/webrtc
Informations about the package ntp
Network Time Protocol
The NetworkTimeProtocol class provides utility methods for working with NTP (Network Time Protocol) timestamps in PHP. It is part of the PHP WebRTC package and supports conversion between NTP timestamps and PHP DateTimeImmutable objects. Internally, it uses GMP to handle 64-bit fixed-point representations of time.
Features
-
Convert current time to NTP timestamp (64-bit fixed-point)
-
Convert NTP timestamp to DateTimeImmutable
-
Accurate fractional second handling
-
Uses GMP for high-precision arithmetic
- Fully UTC-compliant
Requirements
- PHP ≥ 8.4
Documentation
This package is part of the PHP WebRTC library. For complete documentation, examples, and API reference, visit:
Credits
Authors
-
Amin Yazdanpanah
- Website: aminyazdanpanah.com
- Email: [email protected]
- Sana Moniri
- GtiHub: sanamoniri
Reporting Issues
Found a bug? Please report it on our issues.
License
BSD 3-Clause License. See LICENSE for details.
All versions of ntp with dependencies
ext-gmp Version *