PHPackages                             tomkirsch/microtime - 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. tomkirsch/microtime

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

tomkirsch/microtime
===================

CodeIgniter4 Microtime

v1.0(1y ago)03PHPPHP ^7.3||^8.0

Since Oct 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/tomkirsch/microtime)[ Packagist](https://packagist.org/packages/tomkirsch/microtime)[ RSS](/packages/tomkirsch-microtime/feed)WikiDiscussions master Synced 1w ago

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

MicroTime
=========

[](#microtime)

Extends CI's Time class to provide microseconds. Any methods that pass hour, seconds, etc. now have microsecond int as the last arg. PHP's format for microseconds is `.u`MySQL field should be DATETIME(6)

```
use Tomkirsch\MicroTime\MicroTime;

$time = new MicroTime();
$time->setMicrosecond(6666);
print $time; // 2024-04-22 04:12:22.6666

```

Casting in Entities
-------------------

[](#casting-in-entities)

```
use Tomkirsch\MicroTime\MicroTime;

class Transaction extends Entity{
    protected $castHandlers = [
        "microtime" => MicroTimeCast::class,
    ];
    protected $casts = [
		'trans_date'		=> 'microtime',
	];
}

```

###  Health Score

23

—

LowBetter than 25% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

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

670d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/362359?v=4)[Thomas Kirsch](/maintainers/tkirsch)[@tkirsch](https://github.com/tkirsch)

### Embed Badge

![Health badge](/badges/tomkirsch-microtime/health.svg)

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

###  Alternatives

[codeigniter4/appstarter

CodeIgniter4 starter app

1811.8M](/packages/codeigniter4-appstarter)[abydahana/aksara

Aksara is a modern, developer-friendly framework and CMS built on CodeIgniter 4, featuring rapid CRUD development, modular architecture, smart routing, flexible access control, API integration, and an AI assistant to make content management faster and smarter.

1141.2k](/packages/abydahana-aksara)[hermawan/codeigniter4-datatables

Serverside Datatables library for CodeIgniter4

10949.8k4](/packages/hermawan-codeigniter4-datatables)[jason-napolitano/codeigniter4-cart-module

A basic port of the codeigniter 3 cart module for CodeIgniter 4.

5915.6k](/packages/jason-napolitano-codeigniter4-cart-module)[maniaba/asset-connect

AssetConnect is a file management library for CodeIgniter 4 that allows you to associate files with any entity in your application

1016.0k](/packages/maniaba-asset-connect)

PHPackages © 2026

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