PHPackages                             varimax/app - 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. varimax/app

ActiveApplication[Framework](/categories/framework)

varimax/app
===========

The varimax application

v3.3(10mo ago)027Apache-2.0PHP

Since Aug 12Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/dcto/app)[ Packagist](https://packagist.org/packages/varimax/app)[ RSS](/packages/varimax-app/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (5)Versions (24)Used By (0)

Varimax Application Skeleton
============================

[](#varimax-application-skeleton)

2. **Home**:
3. **Source**:
4. **Issues**:
5. **License**: MIT
6. **IRC**: #varimax/app on freenode ---

    [![License](https://camo.githubusercontent.com/964b922bff5b0fbe065634f1efb23daa18f6d7e714a12007135c16d562b50a87/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f766172696d61782f617070)](https://packagist.org/packages/varimax/app) [![PHP version](https://camo.githubusercontent.com/731179b4b00d11272d4b040b22c7da09c486df73d4792f41ba25a52af7000d0b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f766172696d61782f617070)](https://camo.githubusercontent.com/731179b4b00d11272d4b040b22c7da09c486df73d4792f41ba25a52af7000d0b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f766172696d61782f617070) [![Latest Stable Version](https://camo.githubusercontent.com/878b9692f387d982ebfc7f7d6962334975be39d439317a7d8a8d9d7bf6c2be7d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6463746f2f617070)](https://packagist.org/packages/varimax/app) [![Total Downloads](https://camo.githubusercontent.com/d178d372e0085f48cd8cc1a9c24da272490b88e88bbec62e5e8074c3c379ad0a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f766172696d61782f617070)](https://packagist.org/packages/varimax/app)

    ### Get started Install

    [](#get-started-install)

    ```
    composer create-project varimax/app

    ```

    ### Develop environment

    [](#develop-environment)

    touch the .env file into the root directory

    that's content sample like it's

    ```
    ENV=dev
    DEBUG=2

    ```

    ENV will load config directory config {ENV}.name

    about DEBUG option item 1 vs 2

    select 1 will be output error message without code error detail

    select 2 will be output detail code exception message to the client

    ### Router

    [](#router)

    the varimax define some default route rule

    ```
    ':*'    =>  ':.+',
    ':str'  =>  ':[\w-]+',
    ':int'  =>  ':[1-9]\d+',
    ':num'  =>  ':[0-9.-]+',
    ':any'  =>  ':[\w!@$^&+-=|]+',
    ':hex'  =>  ':[a-f0-9]+',
    ':hash' =>  ':[a-z0-9]+',
    ':uuid' =>  ':[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'

    ```

    #### Restful APIs Style

    [](#restful-apis-style)

    ```
    Method     |  Path                |  Action   |
    ------------------------------------------------
    GET        |  /test               |  index    |
    GET        |  /test/(:id)         |  select   |
    POST       |  /test/create        |  create   |
    PUT/PATCH  |  /test/update/(:id)  |  update   |
    DELETE     |  /test/delete/(:id)  |  delete   |

    ```

    #### Routes

    [](#routes)

    ```
