PHPackages                             yidemir/mikro - 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. yidemir/mikro

ActiveLibrary[Framework](/categories/framework)

yidemir/mikro
=============

Micro approach to traditional

1.6.0(3y ago)151082MITPHPPHP ^8.1CI failing

Since Feb 27Pushed 3y ago2 watchersCompare

[ Source](https://github.com/yidemir/mikro)[ Packagist](https://packagist.org/packages/yidemir/mikro)[ Docs](https://github.com/yidemir/mikro)[ RSS](/packages/yidemir-mikro/feed)WikiDiscussions 1.x Synced 4d ago

READMEChangelog (10)Dependencies (2)Versions (45)Used By (0)

Project in development. **Do not use** (yet)

mikro - micro approach to traditional
=====================================

[](#mikro---micro-approach-to-traditional)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1c39d094a9b739f58cc59175c14270803cb30e1614bc0a295bd7ba544251a8e3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f796964656d69722f6d696b726f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yidemir/mikro) [![Total Downloads](https://camo.githubusercontent.com/f14cabd16c6cf3229d751f63663f998151faf25297ba8ad1954f5496d0ea7a70/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f796964656d69722f6d696b726f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yidemir/mikro) [![License](https://camo.githubusercontent.com/45da8f182d9687222255fe0495d14c33dd4f37fff0ef74f755190c13fc3c29dd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f796964656d69722f6d696b726f)](https://packagist.org/packages/yidemir/mikro)

This project is a tool developed to solve some tasks and requests with simple methods, rather than a framework.

I tried to take this project, which I started as a hobby, one step further. There have been fundamental changes compared to the previous version.

Available packages:

- **Cache** - It is a simple caching structure.
- **Config** - It is a simple config structure with setter and getter.
- **Console** - Executes a callback according to the parameter from the command line.
- **Container** - A simple service container.
- **Crypt** - It encrypts and decrypts strings with OpenSSL.
- **DB** - It simplifies your CRUD operations with a PDO instance.
- **Event** - A simple event listener and emitter.
- **Helper** - String and array helpers and more
- **Jwt** - A simple JSON web token authentication structure.
- **Locale** - Multi-language/localization structure
- **Logger** - Basic logging
- **Request** - An easy way to access PHP global request variables.
- **Response** - Sends data/response to the client.
- **Router** - An ultra-simple router with grouping and middleware support.
- **Validator** - A simple data validation library.
- **View** - A view renderer with block and template support.

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

[](#installation)

You can install the package via composer:

```
composer require yidemir/mikro
```

Usage
-----

[](#usage)

**Routing**

```
Router\get('/', fn() => Response\view('home'));
```

```
Router\group('/admin', fn() => [
    Router\get('/', 'DashboardController::index'),
    Router\resource('/posts', PostController::class),
    Router\get('/service/status', fn() => Response\json(['status' => true], 200)
], ['AdminMiddleware::handle']);

Router\files('/', __DIR__ . '/sync-directory');
```

```
Router\error(fn() => Response\html('Default 404 error', 404));
```

**Database**

```
$products = DB\query('select * from products order by id desc')->fetchAll();
$product = DB\query('select * from products where id=?', [$id])->fetch();

DB\insert('products', ['name' => $name, 'description' => $description]);
$id = DB\last_insert_id();

DB\update('products', ['name' => $newName], 'where id=?', [$id]);
DB\delete('products', 'where id=?', [$id]);
```

**View and Templates**

```
@View\set('title', 'Page title!');

@View\start('content');
    Secure print: @=$message; or unsecure print @echo $message;
@View\stop();

@View\start('scripts');

@View\push();

@echo View\render('layout');
```

```

>

    @View\get('title', 'Hey!');

    @View\get('content');

    @View\get('scripts');

```

All methods and constants are documented at the source. The general documentation will be published soon.

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Yılmaz Demir](https://github.com/yidemir)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 99.5% 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 ~29 days

Recently: every ~20 days

Total

42

Last Release

1414d ago

Major Versions

0.x-dev → 1.0.02022-02-22

PHP version history (3 changes)0.2.0PHP &gt;=7.1.0

1.0.0PHP ^8.0

1.4.7PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/46856962e1ab9f95f2611e23b94343c80d80967c12aec80f41002887ccb03b23?d=identicon)[yidemir](/maintainers/yidemir)

---

Top Contributors

[![yidemir](https://avatars.githubusercontent.com/u/5863321?v=4)](https://github.com/yidemir "yidemir (202 commits)")[![yaznesin](https://avatars.githubusercontent.com/u/139385360?v=4)](https://github.com/yaznesin "yaznesin (1 commits)")

---

Tags

frameworkmicroframeworkphproutersimplephpframeworktoolyidemirmikro

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/yidemir-mikro/health.svg)

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

PHPackages © 2026

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