PHPackages                             airframework/airframework - 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. airframework/airframework

ActiveLibrary[Framework](/categories/framework)

airframework/airframework
=========================

Light mvc framework providing simple routing system, twig templates and yml support.

1.0.0(7y ago)1250BSDPHPPHP &gt;=7.0.0

Since Jun 7Pushed 2y ago3 watchersCompare

[ Source](https://github.com/Air-Framework/air-framework)[ Packagist](https://packagist.org/packages/airframework/airframework)[ RSS](/packages/airframework-airframework/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

Air Framework
=============

[](#air-framework)

Light mvc framework providing simple routing system, twig templates and yml support.

Requirement
-----------

[](#requirement)

- Php 7.0
- composer

Install
-------

[](#install)

- Clone this repository
- Run `composer install` and `composer update`
- Decide wich Namespace you want to use Depending on you tree. We'll used `AppNamespace` for this Readme
- Decide where to store your views and your config, respectively views and config for this Readme
- Create your AppNamespace directory and create following files: index.php and .htaccess (replacing `AppNamespace`, `views` if needed)

```
# .htaccess
#
# Air Framework
# Copyright (C) 2018 Abderrahman Daif and Lionel Tordjman
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see . *

# enable Rewite module
RewriteEngine On

# Remove unwanted directories
RewriteRule ^vendor/(.*)?$ / [R=301,L]
RewriteRule ^AppNamespace/(.*)?$ / [R=301,L]

# Serve file if exists
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule .? - [L]
# Rewrite other requests to index.php
RewriteRule .? %{ENV:BASE}/index.php [L]

```

```
# index.php
