PHPackages                             musonacodex/marvic - 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. [Framework](/categories/framework)
4. /
5. musonacodex/marvic

ActiveLibrary[Framework](/categories/framework)

musonacodex/marvic
==================

The Faster and Minimalist PHP Web Application Framework.

1.3.3(6mo ago)07MITPHPPHP &gt;=8.1

Since Aug 26Pushed 6mo agoCompare

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

READMEChangelogDependenciesVersions (9)Used By (0)

Marvic - The Faster and Minimalist PHP Web Application Framework
================================================================

[](#marvic---the-faster-and-minimalist-php-web-application-framework)

---

Table of Contents
-----------------

[](#table-of-contents)

What is Marvic?
---------------

[](#what-is-marvic)

**Marvic** is a minimalist and flexible PHP web application framework with expressive and elegant syntax. This mini framewrok provides a set of features for building of a web application easily. It simplifies the server-side development or server-side application by offering an east to use API for routing, middlewares and HTTP utilities, view engines, and so on.

Marvic is based on [Express.js](https://expressjs.com/) and [Koa](https://koajs.com/), so if you have nearness with one of those framework, use Marvic will be easy for you.

Marvic Application Examples
---------------------------

[](#marvic-application-examples)

Building a Marvic application is very easy, you need do only 3 steps:

- Create a new Marvic application instance.
- Define all needed routes.
- Run the application.

See the example below:

```
$app = Marvic::application();

$app->get('/', function($request, $response) {
	$response->send('Hello! Welcome to Marvic!');
});

$app->run();
```

Features
--------

[](#features)

- **Routing**: allows to define routes and handle HTTP requests for your web application or RESTful API.

```
$app->get('/users', function($request, $response) {
	return 'List of users';
});
```

- **Middlewares**: You can install middleware functions to access request, response, error message and other middlewares. You can use it for user authentication, error handling, data processing and logging for example.

```
$app->use(function($error, $request, $response, $next) {
	if ( $error !== 'notFound' ) return $next();
	$response->sendStatus(404, '404 Not Found');
});
```

- **View Engine Functions**: Use your favorite template engine for your project (BladeOne, Twig, Plates, and so on). With him, you cand render templates easily. The default template engine is Plates.

```
$twig = new Twig\Environment(new Twig\Loader\FilesystemLoader('./view'));

$app->engine('view', fn($view, $data) => $twig->render($view, $data));

$app->get('/', function($request, $response) {
	$response->render('index.html', ['name' => 'John']);
});
```

Why should I use?
-----------------

[](#why-should-i-use)

Marvic is a simple PHP framework and can be quite useful for web application or API building. But the decision depends of the project size, your requirements, mantainment and level of control ehat you want to have. By while, Marvic is useful for:

- **Small or Middle Projects**: You don't need a robust framework as Laravel or Symfony, but you also don't want do "everything on the nail". You can use to build small APIs, landing pages, and so on.
- **Prototype or MVP (Minimum Viable Product)**: Allows to create fast routes, cope with requests/responses, organize folders, and have a weightless structure.
- **RESTful APIs or Specifical Services**: If your web application will be a backend for frontends (SPA, mobile, etc), simple frameworks like Marvic wont be ideals because performance and low complexity.
- **Learning**: If you are beginning and you want to understand how to work concepts like routing, controllers, middlewares HTTP requests and responses, etc, Marvic can help you.
- **When the performance is priority**: Big frameworks add overhead (extra layers and dependences). If the project need be fast, use Marvic can be better.

Requeriments
------------

[](#requeriments)

- PHP 8.1 or higher.

Get Started
-----------

[](#get-started)

Documentation
-------------

[](#documentation)

See the API Documentation [Click Here](./docs/api/v1.x.md)

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance71

Regular maintenance activity

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

Total

8

Last Release

194d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1623fc120032b4d344aff5dd6840a40ad31e35f00d659eed1ecd01abf29d9bc9?d=identicon)[musonacodex](/maintainers/musonacodex)

---

Top Contributors

[![musonacodex](https://avatars.githubusercontent.com/u/135843088?v=4)](https://github.com/musonacodex "musonacodex (171 commits)")

---

Tags

frameworkhttpphprouting

### Embed Badge

![Health badge](/badges/musonacodex-marvic/health.svg)

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M190](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M255](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M591](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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