PHPackages                             mkhvsl/mv-server-time - 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. mkhvsl/mv-server-time

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

mkhvsl/mv-server-time
=====================

0.0.3(1y ago)04GPL-2.0+PHPPHP &gt;=7.4

Since Apr 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mkhvsl/mv-server-time)[ Packagist](https://packagist.org/packages/mkhvsl/mv-server-time)[ RSS](/packages/mkhvsl-mv-server-time/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Server Time
===========

[](#server-time)

Returns current server time based on IP using .

Requirements
------------

[](#requirements)

- PHP 7.4 or higher
- Composer

Setup
-----

[](#setup)

```
composer require mkhvsl/mv-server-time
```

Usage
-----

[](#usage)

```
now(); // Based on server IP
// or
$time = (new ServerTime())->now('8.8.8.8'); // Based on provided IP

echo $time->format('Y-m-d H:i:s');

?>
```

Testing
-------

[](#testing)

Unit tests are written using PHPUnit.

Run tests:

```
./vendor/bin/phpunit tests
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance48

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 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

3

Last Release

388d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e5bc81994491e3c62aa6575069ff0315fb2746a908cf5bb7c7fe8617dc61cce8?d=identicon)[mkhvsl](/maintainers/mkhvsl)

---

Top Contributors

[![mkhvsl](https://avatars.githubusercontent.com/u/156906278?v=4)](https://github.com/mkhvsl "mkhvsl (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mkhvsl-mv-server-time/health.svg)

```
[![Health](https://phpackages.com/badges/mkhvsl-mv-server-time/health.svg)](https://phpackages.com/packages/mkhvsl-mv-server-time)
```

###  Alternatives

[ishanvyas22/asset-mix

Asset Mix plugin for CakePHP

3375.4k2](/packages/ishanvyas22-asset-mix)[prgayman/laravel-zatca

Laravel package a helper to Generate the QR code and signed it for ZATCA E-invoicing

2926.9k1](/packages/prgayman-laravel-zatca)[ducks-project/spl-types

Polyfill Module for SplType PHP extension. This extension aims at helping people making PHP a stronger typed language and can be a good alternative to scalar type hinting. It provides different typehandling classes as such as integer, float, bool, enum and string

1032.4k](/packages/ducks-project-spl-types)

PHPackages © 2026

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