PHPackages                             makiavelo/quark - 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. makiavelo/quark

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

makiavelo/quark
===============

13PHP

Since Oct 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Makiavelo/quark)[ Packagist](https://packagist.org/packages/makiavelo/quark)[ RSS](/packages/makiavelo-quark/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Quark
=====

[](#quark)

Minimalistic framework to handle routes via middlewares. The whole framework consists of 4 core files and two helper libraries, so It's truly minimalistic. Source files are under 200 lines each (comments included).

Full documentation
------------------

[](#full-documentation)

Full documentation, examples and tutorials here:

Install (with composer)
-----------------------

[](#install-with-composer)

```
composer require makiavelo/quark

```

Or update dependencies in composer.json

```
"require": {
    "makiavelo/quark": "dev-master"
}
```

Install with single file
------------------------

[](#install-with-single-file)

The repository contains a phar file which can be included directly to avoid using composer. The phar can be found here: `/phar/quark.phar`

Setup
-----

[](#setup)

Create a .htaccess file in your document root and make sure the server has rewrites enabled (apache, nginx, etc.)

```
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]

```

Usage
-----

[](#usage)

Create an 'index.php' file in your document root.

```
