PHPackages                             moaik/moant - 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. moaik/moant

ActiveProject[Framework](/categories/framework)

moaik/moant
===========

Micro framework powered by slim

v1.0.6(6y ago)1210[3 PRs](https://github.com/moaik/moant/pulls)MITPHPPHP &gt;=5.5.0

Since Dec 20Pushed 2y agoCompare

[ Source](https://github.com/moaik/moant)[ Packagist](https://packagist.org/packages/moaik/moant)[ RSS](/packages/moaik-moant/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (7)Dependencies (8)Versions (12)Used By (0)

[![](https://camo.githubusercontent.com/6907ae52d618de3b625007c7d6ebd0db03d17d72a21e15b862af5ad1c2d1d869/687474703a2f2f707967726f6f732d6769746875622e6f73732d636e2d6265696a696e672e616c6979756e63732e636f6d2f616e742e7376673f457870697265733d31353438343035343739264f53534163636573734b657949643d544d502e4151486e787761614c734c614d4649794762516d59684431634c5671573842326d636f725a316c4734774457385861417375616e4f5a4c6433523036414441744168554169363358375238586a36717531397372764a424671574a7a687034434646476a6578316f7064585767764476394371754a5834565a7a7545265369676e61747572653d646d6767596a786d4630774458505630523350584e345a74375041253344)](https://camo.githubusercontent.com/6907ae52d618de3b625007c7d6ebd0db03d17d72a21e15b862af5ad1c2d1d869/687474703a2f2f707967726f6f732d6769746875622e6f73732d636e2d6265696a696e672e616c6979756e63732e636f6d2f616e742e7376673f457870697265733d31353438343035343739264f53534163636573734b657949643d544d502e4151486e787761614c734c614d4649794762516d59684431634c5671573842326d636f725a316c4734774457385861417375616e4f5a4c6433523036414441744168554169363358375238586a36717531397372764a424671574a7a687034434646476a6578316f7064585767764476394371754a5834565a7a7545265369676e61747572653d646d6767596a786d4630774458505630523350584e345a74375041253344)

[![](https://camo.githubusercontent.com/e56c5b04f22a04b1040276794bedbf9fad998eb2110d3af5f8b98f3991d28adf/68747470733a2f2f706f7365722e707567782e6f72672f707967726f6f732f6d6f616e742f762f737461626c65)](https://packagist.org/packages/pygroos/moant)[![](https://camo.githubusercontent.com/e10b18e52fa47d8106ddf41273f4cfdc225750045dd00fbe944131681e2fee82/68747470733a2f2f706f7365722e707567782e6f72672f707967726f6f732f6d6f616e742f646f776e6c6f616473)](https://packagist.org/packages/pygroos/moant)[![License](https://camo.githubusercontent.com/7578f363fc2290530b169e81a2fd01c9e1f7ced25c1bee8f70ecc0e8d7673726/68747470733a2f2f706f7365722e707567782e6f72672f707967726f6f732f6d6f616e742f6c6963656e7365)](https://packagist.org/packages/pygroos/moant)

Introduction
------------

[](#introduction)

**Moant is a php micro framework powered by slim.Used for easy and quick development api.**
**Moant have the following characteristics:**

- **restful api route**
- **flexible api version control**
- **customize package**
- **php cli command**
- ......

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

[](#installation)

```
composer create-project pygroos/moant your-app '1.0.*' --prefer-dist -vvv

```

Example
-------

[](#example)

- **Route**

```
$app->get('/', '\App\Api\DemoApi:test');

```

- **Config**

```
APP_DEBUG=true
TIMEZONE=Asia/Shanghai

# Database config
# [required]
DB_TYPE=mysql
DB_NAME=test
DB_HOST=127.0.0.1
DB_USERNAME=root
DB_PASSWORD=
# [optional]
DB_PORT=
DB_CHARSET=
DB_PREFIX=

# Redis config
REDIS_SCHEME=tcp
REDIS_HOST=127.0.0.1
REDIS_PORT=6379

```

- **Api demo**

```
