PHPackages                             fm\_ph/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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. fm\_ph/quark

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

fm\_ph/quark
============

Quark server

v1.7.3(8y ago)0119MITPHPPHP ^7.0

Since Apr 16Pushed 8y ago2 watchersCompare

[ Source](https://github.com/fm-ph/quark-server)[ Packagist](https://packagist.org/packages/fm_ph/quark)[ Docs](https://github.com/fm-ph/quark-server)[ RSS](/packages/fm-ph-quark/feed)WikiDiscussions develop Synced 2w ago

READMEChangelogDependencies (15)Versions (17)Used By (0)

[![quark-server](logo.png)](https://github.com/fm-ph/quark-server)
==================================================================

[](#)

[![build status](https://camo.githubusercontent.com/dbd96a1923b47d570f80acb5a0f9f59579f6e341d38afdc93e097e73687a4f6e/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f666d2d70682f717561726b2d7365727665722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](http://travis-ci.org/fm-ph/quark-server)[![packagist version](https://camo.githubusercontent.com/4d295cac39db57ad7028d5c67dda84a6b8ee8971286b059219d353923b674d1e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666d5f70682f717561726b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fm_ph/quark)[![php-version](https://camo.githubusercontent.com/90eed33e7df559b70b174e97d37a4907946803c7ab691640166d2518d8cd2118/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e302d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net)[![composer.lock](https://camo.githubusercontent.com/1a59bb0da411bb273b813da7c5b79e8ae657d53d129e19494302c5b28046b284/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2e6c6f636b2d636f6d6d697465642d6531303037392e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fm_ph/quark)

Server part of `quark` framework handling mainly the **routing** and **templating**.

Features
--------

[](#features)

- **Routing** : Methods, regex parameters, redirect, locale.
- **Templating** : Twig (layouts, cache, customs extensions, filters, globals...).
- **Locale** : IP address detection (Geocoder with providers chain), fallback to prefered browser locale.
- **User agent** : Browser, engine, operating system, device, bot and old browser detection.
- **Manifest** : Assets hash, environment.
- **Configuration** : Supports PHP, INI, XML, JSON, and YAML file formats.
- **Others** : Error handler, function helpers.

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

[](#installation)

Get [Composer](https://getcomposer.org/download/) and run :

```
composer require fm_ph/quark
```

***Note*** : You need at least **PHP 7.x** (CLI) installed on your machine to use this package (verify it with `php -v`).

For **OS X** users, you can easily update it on .

Usage
-----

[](#usage)

### Basic

[](#basic)

Get an `Application` singleton instance and render matched route template.

```
