PHPackages                             koderhut/securitytxt - 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. [Security](/categories/security)
4. /
5. koderhut/securitytxt

ActiveLibrary[Security](/categories/security)

koderhut/securitytxt
====================

A package to generate a security.txt file

0.1.1(7y ago)0361MITPHP

Since Oct 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/koderhut/securitytxt)[ Packagist](https://packagist.org/packages/koderhut/securitytxt)[ RSS](/packages/koderhut-securitytxt/feed)WikiDiscussions master Synced 3d ago

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

[![Build Status](https://camo.githubusercontent.com/37edd9d16f9c0141a84d01d71a34ac885a2c619c3c54681974798b59016deb38/68747470733a2f2f7472617669732d63692e6f72672f6b6f6465726875742f73656375726974797478742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/koderhut/securitytxt)[![Coverage Status](https://camo.githubusercontent.com/c079052a65847b00c0fce8cca584b477d6a5761eeed23d0bdae9f1a4d872ac0a/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6b6f6465726875742f73656375726974797478742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/koderhut/securitytxt?branch=master)[![GitHub](https://camo.githubusercontent.com/850eae1099d2b05f53383473d7cd51f9bc1ab09b7d0d9e5122f1dd930efdcc6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e737667)](https://camo.githubusercontent.com/850eae1099d2b05f53383473d7cd51f9bc1ab09b7d0d9e5122f1dd930efdcc6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e737667)[![PHP from Travis config](https://camo.githubusercontent.com/9d245815c30188a34e60692f24442c3fe7e92f9958d8a7a1d6f7463e7ed866b3/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7068702d762f73796d666f6e792f73796d666f6e792e737667)](https://camo.githubusercontent.com/9d245815c30188a34e60692f24442c3fe7e92f9958d8a7a1d6f7463e7ed866b3/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7068702d762f73796d666f6e792f73796d666f6e792e737667)

SecurityTXT
===========

[](#securitytxt)

A set of classes to help build a security.txt file in OO manner. For a more detailed description of the security.txt file please visit: [securitytxt.org](http://securitytxt.org)

Usages
------

[](#usages)

Build at least the Contact directive:

```
$contact = new Contact(new Email('test@email.com'), new Phone('1234567890'));
$contact->addCommentLine(new Comment('For security issues please contact us using one of the methods below'));
```

Then create a SecurityTxt object and pass it an output writer implementing the `WriteInterface` (at the moment of writing only NewLine is available):

```
$document = new SecurityTxt(new NewLine());
$document->addDirective($contact);
```

The last step is to simply cast to string or call \_\_toString():

```
echo $document->__toString();
```

LICENSE
-------

[](#license)

Please review the LICENSE file

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

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

Every ~0 days

Total

2

Last Release

2765d ago

### Community

Maintainers

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/koderhut-securitytxt/health.svg)

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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