PHPackages                             debva/nix - 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. debva/nix

ActiveLibrary[Framework](/categories/framework)

debva/nix
=========

PHP Framework

v1.5.0(2y ago)3470MITPHP

Since Sep 9Pushed 1y agoCompare

[ Source](https://github.com/debva/nix)[ Packagist](https://packagist.org/packages/debva/nix)[ RSS](/packages/debva-nix/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (9)Used By (0)

NIX PHP Framework
=================

[](#nix-php-framework)

[![Total Downloads](https://camo.githubusercontent.com/eb8b1c7c186d95dca85b697063cc52386a118a6b9ecbb8bdc55040083bddb449/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64656276612f6e6978)](https://packagist.org/packages/debva/nix)[![Issues](https://camo.githubusercontent.com/a2e1d43b494c7fd7be8926769594a8c58dab43f6767bb6bcdfaa47e27321199b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f64656276612f6e6978)](https://github.com/debva/nix)[![Forks](https://camo.githubusercontent.com/98cf611bdc7689b625160f78ae58b14c5aaca8478fd8317afc497eddea577604/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f64656276612f6e6978)](https://github.com/debva/nix)[![Stars](https://camo.githubusercontent.com/2227498e7dc7e34905665ae713dd9ed80e999d8619792bd52d93a767c5715b68/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f64656276612f6e6978)](https://github.com/debva/nix)[![License](https://camo.githubusercontent.com/4c77b61886728f8b1308acd9663a2b9012d9ef3e3fed043484383875d32a80c1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f64656276612f6e6978)](https://github.com/debva/nix)

NIX PHP Framework is a lightweight, secure, and versatile PHP framework designed to work seamlessly across various PHP versions. It prioritizes performance, security, and ease of use, making it an ideal choice for developing web applications of all kinds.

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

[](#installation)

Install with composer

```
composer require debva/nix

```

Structure
---------

[](#structure)

- **public/**: This folder contains files that can be accessed publicly through the web server. It includes the .htaccess file and index.php.
- **app/**: This folder houses the server-side components of the project.

    - **middleware/**: This folder contains middleware used in the project.
    - **routes/**: This folder contains the code for the project's route.
    - **services/**: This folder contains services used in the project.

Feel free to adapt this folder structure template to your project.

Usage
-----

[](#usage)

public/.htaccess

```
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,QSA]

```

public/index.php

```
