PHPackages                             slight.mvc/framework - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. slight.mvc/framework

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

slight.mvc/framework
====================

Slight is an MVC framework that will assist you in the development of rest applications, containing tools for routing, authentication and validation for data models.

08PHP

Since Jul 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/mehah/Slight)[ Packagist](https://packagist.org/packages/slight.mvc/framework)[ RSS](/packages/slightmvc-framework/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Slight Framework
================

[](#slight-framework)

Slight is an MVC framework that will assist you in the development of rest applications, containing tools for routing, authentication and validation for data models.

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

[](#installation)

You can use an already ready structure that is found here: **[Sample Project](https://github.com/mehah/Slight-project)**

Or

If you want to build your own structure, just sweat the [Composer](https://getcomposer.org/).

```
composer require slight.mvc/framework:dev-master
```

#### Project Structure (folders)

[](#project-structure-folders)

- src

    - config.php
    - router.php
- vendor

    - ...
- view

    - index.html

 .htaccess```
RewriteEngine On
RewriteCond %{REQUEST_URI} ^((?!\.).)*$ [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?$url=$1 [QSA,L]

RewriteEngine On
RewriteCond %{REQUEST_URI} \.*$
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ view/$1 [QSA,L]

RewriteEngine on
RewriteCond %{REQUEST_URI} (/src/|/vendor/|/build/)
RewriteRule ^.*$ /404 [L]

```

 index.php```
