PHPackages                             nddcoder/php-offline-license - 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. nddcoder/php-offline-license

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

nddcoder/php-offline-license
============================

0.0.1(5y ago)021MITPHPPHP ^8.0CI failing

Since Dec 20Pushed 5y ago2 watchersCompare

[ Source](https://github.com/dangdungcntt/php-offline-license)[ Packagist](https://packagist.org/packages/nddcoder/php-offline-license)[ Docs](https://github.com/nddcoder/php-offline-license)[ RSS](/packages/nddcoder-php-offline-license/feed)WikiDiscussions master Synced 3w ago

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/728d6e57764a260d2fd74f22d27b84b5d0aa1714b6d0219161a615fc86ba99be/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6464636f6465722f7068702d6f66666c696e652d6c6963656e73652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nddcoder/php-offline-license)[![GitHub Tests Action Status](https://camo.githubusercontent.com/e21ce48e556f1f42ba1f27a5a47e1ea72cde3e5b2ab71261f94cb22e66c71186/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f64616e6764756e67636e74742f7068702d6f66666c696e652d6c6963656e73652f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/nddcoder/php-offline-license/actions?query=workflow%3ATests+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/7fe2382101821b7493d92a1bcd3cd43d78f4d0540e67c970c56cf997a6db4421/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6464636f6465722f7068702d6f66666c696e652d6c6963656e73652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nddcoder/php-offline-license)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require nddcoder/php-offline-license
```

Basic Usage
-----------

[](#basic-usage)

```
$phpOfflineLicense = new Nddcoder\PhpOfflineLicense::create('secret');
$license = $phpOfflineLicense->generate(); //uuid like string
$licenseInfo = $phpOfflineLicense->getInfo($license); //LicenseInfo object
$isValid = $phpOfflineLicense->validate($license);//true or false
```

### Generate license with expire time

[](#generate-license-with-expire-time)

```
$phpOfflineLicense->generate(time() + 86400); //license expire time after 1 day
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Dung Nguyen Dang](https://github.com/dangdungcntt)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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

2021d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/108944439?v=4)[nddzee](/maintainers/nddcoder)[@nddcoder](https://github.com/nddcoder)

---

Top Contributors

[![dangdungcntt](https://avatars.githubusercontent.com/u/22521948?v=4)](https://github.com/dangdungcntt "dangdungcntt (5 commits)")

---

Tags

nddcoderphp-offline-license

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nddcoder-php-offline-license/health.svg)

```
[![Health](https://phpackages.com/badges/nddcoder-php-offline-license/health.svg)](https://phpackages.com/packages/nddcoder-php-offline-license)
```

###  Alternatives

[suncat/mobile-detect-bundle

Symfony2/3/4 bundle for detect mobile devices, managing mobile view types, redirect to mobile version.

4035.4M7](/packages/suncat-mobile-detect-bundle)[xynnn/google-tag-manager-bundle

Google Tag Manager Bundle for Symfony

27749.7k1](/packages/xynnn-google-tag-manager-bundle)[keepsuit/laravel-temporal

Laravel temporal.io

52115.5k](/packages/keepsuit-laravel-temporal)[iamntz/carbon-fields-urlpicker

Carbon Fields extension that adds a URL picker field type.

1441.7k](/packages/iamntz-carbon-fields-urlpicker)

PHPackages © 2026

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