PHPackages                             tohmua/mr-oak - 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. tohmua/mr-oak

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

tohmua/mr-oak
=============

v0.3.1(9y ago)013.9kPHP

Since May 14Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Tohmua/MrOak)[ Packagist](https://packagist.org/packages/tohmua/mr-oak)[ RSS](/packages/tohmua-mr-oak/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (8)Dependencies (5)Versions (9)Used By (0)

MrOAK
=====

[](#mroak)

Create base modules or other file structures based on templates. Similar to Laravel's Artisan command however templates are not tied to a specific framework and are intended to be specific for a projects needs.

When you run MrOAK you are required to supply two parameters.

**Template**: A path to ``. This can either be an absolute path or the name of a package in the vendor directory.

**Module Path**: A path to where you wish your new module to reside.

MrOAK will then take everything in the `` directory and copy it to the `path/to/new/module`.

Whilst doing this it will replace references in your template files and file names to both `{Namespace}` and `{Module}` with the values supplied to MrOAK.

### Install

[](#install)

```
composer require tohmua/mr-oak
composer require

```

### Parameters

[](#parameters)

ArgumentsDescription`Template`The name or path to the template you wish to use`Module Path`Path where you wish the new module to resideOptionsDescription`--namespace`Namespace for the module### Usage

[](#usage)

```
vendor/bin/MrOak create -h

```

```
vendor/bin/MrOak create --namespace="YourProject\\" " path/to/new/module

```

**Note**: It is recommended that you alias this in your composer.json file as a script. In most use cases things like the template and namespace will not need to change so they can be omitted via an alias. e.g.

```
"scripts": {
    "create-module": [
        "vendor/bin/MrOak create --namespace Acme\\\\  "
    ]
}
```

You can then just run `composer create-module src/NewModule`

### Templates

[](#templates)

`` can either be the path to a directory e.g. `vendor/my-template/module` or the composer name e.g. `my-template/module`.

MrOAK will take a copy of everything in that directory replacing references to both `{Namespace}` and `{Module}` in files and file names with the config supplied.

### Examples

[](#examples)

- [SLIM Framework](https://github.com/tohmua/MrOak-SLIM)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

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

Every ~3 days

Total

8

Last Release

3354d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ce79df0056efb1bb9aa3eb36ed02d188af7cdfd2473647162dbf299df47ccb1?d=identicon)[Tohmua](/maintainers/Tohmua)

---

Top Contributors

[![Tohmua](https://avatars.githubusercontent.com/u/6814384?v=4)](https://github.com/Tohmua "Tohmua (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tohmua-mr-oak/health.svg)

```
[![Health](https://phpackages.com/badges/tohmua-mr-oak/health.svg)](https://phpackages.com/packages/tohmua-mr-oak)
```

###  Alternatives

[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

86337.5k](/packages/flow-php-flow)[spatie/laravel-export

Create a static site bundle from a Laravel app

679153.2k7](/packages/spatie-laravel-export)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.8M668](/packages/shopware-core)[typo3/cms-redirects

TYPO3 CMS Redirects - Create manual redirects, list existing redirects and automatically createredirects on slug changes.

167.6M84](/packages/typo3-cms-redirects)[eliashaeussler/typo3-form-consent

Extension for TYPO3 CMS that adds double opt-in functionality to EXT:form

15100.9k](/packages/eliashaeussler-typo3-form-consent)[aedart/athenaeum

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

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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