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

ActiveProject

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 1mo 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

24

—

LowBetter than 32% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity44

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

579d 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

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

Aksara is a CodeIgniter based CRUD Toolkit you can use to build complex applications become shorter, secure and more reliable just in a few lines of code. Serving both CMS or Framework, produce both HEADLESS (RESTful API) or TRADITIONAL (Browser Based), just by writing single controller. Yet it's reusable, scalable and ready to use!

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

Serverside Datatables library for CodeIgniter4

10943.0k3](/packages/hermawan-codeigniter4-datatables)[agungsugiarto/boilerplate

CodeIgniter4 Boilerplate based on AdminLTE 3 with user management, roles, permissions, ...

1647.7k](/packages/agungsugiarto-boilerplate)[agungsugiarto/codeigniter4-cors

Send CORS Headers in a CodeIgniter 4 application.

6524.6k2](/packages/agungsugiarto-codeigniter4-cors)[jason-napolitano/codeigniter4-cart-module

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

5814.8k](/packages/jason-napolitano-codeigniter4-cart-module)

PHPackages © 2026

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