PHPackages                             mzdr/micro - 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. mzdr/micro

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

mzdr/micro
==========

A tiny multi-tool for your next big PHP adventure.

3.0.0(6y ago)11971MITPHPPHP ^7.1.3

Since Feb 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mzdr/micro)[ Packagist](https://packagist.org/packages/mzdr/micro)[ Docs](https://mzdr.github.io/micro/)[ RSS](/packages/mzdr-micro/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (8)Dependencies (13)Versions (10)Used By (1)

 [ ![micro](https://camo.githubusercontent.com/748a78230759ad710eb4f148b114ba6e3931579f636626cf5acd06cbd044430d/68747470733a2f2f6d7a64722e6769746875622e696f2f6d6963726f2f69636f6e2e737667) ](https://github.com/mzdr/micro)

A *tiny* multi-tool for your next big [PHP](http://php.net/) adventure.[1](#f1)

Features
--------

[](#features)

- Easily manage your application’s **configuration** with [Gestalt](https://github.com/samrap/gestalt).

    > Supports PHP, YAML, INI and JSON files out of the box.
- Handle **databases** with [Doctrine](https://www.doctrine-project.org/)’s [DBAL](https://www.doctrine-project.org/projects/dbal.html) and optionally use their [ORM](https://www.doctrine-project.org/projects/orm.html).

    > The Doctrine database abstraction &amp; access layer (DBAL) offers a lightweight and thin runtime layer around a PDO-like API and a lot of additional, horizontal features like database schema introspection and manipulation through an OO API.
- Have **error handling and formatting** to your preference with [BooBoo](https://github.com/thephpleague/booboo).

    > BooBoo is an error handler for PHP that allows for the execution of handlers and formatters for viewing and managing errors in development and production. It won’t end up in your stack trace, is built for logging, designed for extension and handles errors non-blocking by default.
- Set up lightning fast **routing** with [FastRoute](https://github.com/nikic/FastRoute).

    > A fast regular expression based request router for PHP. See this [article](http://nikic.github.io/2014/02/18/Fast-request-routing-using-regular-expressions.html) for more details.
- Use *native* PHP **templates** with [Plates](https://github.com/thephpleague/plates).

    > Plates is designed for developers who prefer to use native PHP templates over compiled template languages, such as Twig or Blade. It supports layouts, inheritance, namespaces, data sharing and comes with built-in escaping helpers.
- ⚡️ Speed up your (dynamic) web applications by **caching** with [Scrapbook](https://github.com/matthiasmullie/scrapbook#keyvaluestore).

    > PHP cache library, with adapters for e.g. Memcached, Redis, Couchbase, APC(u), SQL and additional capabilities (e.g. transactions, stampede protection) built on top.

Requirements
------------

[](#requirements)

[PHP](http://php.net) 7.1.3+ and preferably [URL Rewriting](https://github.com/mzdr/micro/wiki/URL-Rewriting) enabled.

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

[](#installation)

It is recommended that you install this framework using [Composer](https://getcomposer.org/doc/00-intro.md).

```
composer require mzdr/micro
```

Usage
-----

[](#usage)

**micro** is basically just a bunch of *wrapper functions* located under a *single* namespace called `µ`. Every file you see in [`./micro/functions`](./micro/functions) is also available as a function with the same name.

Let me talk in code to you… 😎

```
