PHPackages                             kalyashka/srcdoc - 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. kalyashka/srcdoc

ActiveLibrary

kalyashka/srcdoc
================

Translates your source files to HTML, which you can later convert to .docx, .pdf

0.1.0(7y ago)17MITPHPPHP &gt;=7.1

Since Jan 9Pushed 7y ago1 watchersCompare

[ Source](https://github.com/kalyashka/srcdoc)[ Packagist](https://packagist.org/packages/kalyashka/srcdoc)[ RSS](/packages/kalyashka-srcdoc/feed)WikiDiscussions master Synced 4d ago

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

Srcdoc
======

[](#srcdoc)

A command line utility for collecting and pasting source code in html document. Uses [scrivo/highlight.php](https://github.com/scrivo/highlight.php) for syntax highlighting.

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

[](#installation)

```
composer global require kalyashka/srcdoc
```

Usage
-----

[](#usage)

```
srcdoc [options] []
```

where `` - root directory with source files (defaults to current directory) `options`:

- `--help, -h` - show help
- `--extensions, -e` - file extensions (comma separated, "php,js,css,scss")
- `--exclude, -x` - files/directories patterns for exclude (e.g. "vendor,assets", comma separated)
- `--output, -o` - output file name (stdout will be used if not provided)
- `--list, -l` - do not scan directory and use listing file (one file per line)
- `--no-syntax, -s` - disable syntax highlighting
- `--theme, t` - use one of highlight.php theme
- `--theme-list` - outputs list of highlight.php themes
- `--heading` - heading tag (default h3)

### Example

[](#example)

```
srcdoc -e vendor -x "php,js,css" --heading h2 --theme idea -o doc.html
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

2684d ago

### Community

Maintainers

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

---

Top Contributors

[![kalyashka](https://avatars.githubusercontent.com/u/9592713?v=4)](https://github.com/kalyashka "kalyashka (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kalyashka-srcdoc/health.svg)

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

###  Alternatives

[phan/phan

A static analyzer for PHP

5.6k11.2M1.1k](/packages/phan-phan)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-soap/wsdl

Deals with WSDLs

173.5M12](/packages/php-soap-wsdl)[php-soap/wsdl-reader

A WSDL reader in PHP

212.3M9](/packages/php-soap-wsdl-reader)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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