PHPackages                             samaphp/microapp-dev - 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. samaphp/microapp-dev

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

samaphp/microapp-dev
====================

Developer tools for MicroApp

0.7.2(11mo ago)013[1 issues](https://github.com/samaphp/microapp-dev/issues)MITPHP

Since Apr 30Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/samaphp/microapp-dev)[ Packagist](https://packagist.org/packages/samaphp/microapp-dev)[ RSS](/packages/samaphp-microapp-dev/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (9)Used By (0)

🛠️ MicroApp Dev Tools
=====================

[](#️-microapp-dev-tools)

**MicroApp Dev** is a CLI companion package for [MicroApp](https://github.com/samaphp/microapp) — a minimal PHP microframework for building super-microservices and tiny APIs.

This package provides CLI tools to quickly scaffold and initialize MicroApp projects, without bloated dependencies or boilerplate.

---

✨ Features
----------

[](#-features)

- ✅ One-command project setup with `init`
- ✅ Autoload + .htaccess scaffolding
- ✅ `index.php` bootstrapping
- ✅ PSR-4 controller generator with optional route override
- ✅ Route listing tool with controller name display

---

🚀 Installation
--------------

[](#-installation)

```
composer require --dev samaphp/microapp-dev
```

⚙️ What `init` Does
-------------------

[](#️-what-init-does)

Running the `init` command will:

- ✅ Inject `App\\ => src/` into `composer.json` if missing
- ✅ Copy `.htaccess` to your root directory `.htaccess` if not already present
- ✅ Run `composer dump-autoload` to finalize setup

🛣️ Roadmap
----------

[](#️-roadmap)

Planned CLI tools and enhancements:

- 🔸 **Hookable Error Renderer** to allow custom error output (e.g., HTML or plain text)
- 🔸 **Scaffold lightweight authentication** that provides a simple mechanism to run before route dispatch and validate headers (e.g., tokens or basic auth credentials). Ideal for securing microservices or internal tools without requiring a full authentication system.
- 🔸 **Unified CLI Interface** to simplify all commands under a single entry point (e.g., `vendor/bin/microapp make:controller HomeController`)
- 🔸 **Built-in Dev Server** (`vendor/bin/microapp serve`) using PHP’s internal server with colored output

🚧 Disclaimer
------------

[](#-disclaimer)

This package is intended for development use only and should be installed with `--dev`.
It provides scaffolding and CLI tooling to speed up project setup, but is not required for production environments.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance50

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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 ~5 days

Total

6

Last Release

356d ago

### Community

Maintainers

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

---

Top Contributors

[![samaphp](https://avatars.githubusercontent.com/u/531627?v=4)](https://github.com/samaphp "samaphp (12 commits)")

### Embed Badge

![Health badge](/badges/samaphp-microapp-dev/health.svg)

```
[![Health](https://phpackages.com/badges/samaphp-microapp-dev/health.svg)](https://phpackages.com/packages/samaphp-microapp-dev)
```

###  Alternatives

[mikestecker/craft-videoembedder

Craft plugin to generate an embed URL from a YouTube or Vimeo URL.

1799.3k1](/packages/mikestecker-craft-videoembedder)[prestashop/cronjobs

PrestaShop module cronjobs

212.4k](/packages/prestashop-cronjobs)

PHPackages © 2026

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