PHPackages                             kittinan/crypt-time-php - 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. kittinan/crypt-time-php

ActiveLibrary

kittinan/crypt-time-php
=======================

CryptTime-PHP is a simple class to encrypt string with timeout. the encryption use AES128/PKCS7.

1.0.0(11y ago)0791MITPHPPHP &gt;=5.3.0

Since Sep 10Pushed 11y ago1 watchersCompare

[ Source](https://github.com/kittinan/CryptTime-PHP)[ Packagist](https://packagist.org/packages/kittinan/crypt-time-php)[ RSS](/packages/kittinan-crypt-time-php/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

CryptTime-PHP
=============

[](#crypttime-php)

[![Build Status](https://camo.githubusercontent.com/79f77ec16ab0a31459ee5a771204e6fe44344ece5375b5cf73aa6b98e01379c7/68747470733a2f2f7472617669732d63692e6f72672f6b697474696e616e2f437279707454696d652d5048502e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kittinan/CryptTime-PHP)[![Coverage Status](https://camo.githubusercontent.com/29b2d5ec6f2b3d4d61aceaba4303abf4d471c4f9c9028e916aeaf3fa1eed0867/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6b697474696e616e2f437279707454696d652d5048502f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/kittinan/CryptTime-PHP?branch=master)[![License](https://camo.githubusercontent.com/6caaa65af7fbf4bc581c8eb94158412a39f750b954f11d90079dbc303dbb14b3/68747470733a2f2f706f7365722e707567782e6f72672f6b697474696e616e2f63727970742d74696d652d7068702f6c6963656e73652e737667)](https://packagist.org/packages/kittinan/crypt-time-php)

CryptTime-PHP is a simple class to encrypt string with timeout. the encryption use AES128/PKCS7.

Requirement
-----------

[](#requirement)

- PHP 5.3+
- php-mcrypt

Composer
--------

[](#composer)

This plugin on the Packagist.

Quick Start.
------------

[](#quick-start)

```
$plainText = 'Hello World';

$cryptTime = \KS\CryptTime::getInstance();

$cipherText = $cryptTime->encrypt($plainText);  //Default timeout is 86400 seconds (1 day)

$decryptText = $cryptTime->decrypt($cipherText);
```

if you want to encrypt string with 10 minutes timeout.

```
$plainText = 'Hello World';

$cryptTime = \KS\CryptTime::getInstance();

$cipherText = $cryptTime->encrypt($plainText, 600);  //10 minutes = 600 seconds

$decryptText = $cryptTime->decrypt($cipherText);
```

you can set IV and Key

```
$cryptTime = \KS\CryptTime::getInstance();
$cryptTime->setIV('MyNewInitialValue');
$cryptTime->setKey('MyNewKeyMyNewKeyMyNewKey');
```

License
=======

[](#license)

The MIT License (MIT)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

4265d ago

### Community

Maintainers

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

---

Top Contributors

[![kittinan](https://avatars.githubusercontent.com/u/144775?v=4)](https://github.com/kittinan "kittinan (27 commits)")

### Embed Badge

![Health badge](/badges/kittinan-crypt-time-php/health.svg)

```
[![Health](https://phpackages.com/badges/kittinan-crypt-time-php/health.svg)](https://phpackages.com/packages/kittinan-crypt-time-php)
```

PHPackages © 2026

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