PHPackages                             milesq/nyxt - 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. milesq/nyxt

ActiveLibrary[Framework](/categories/framework)

milesq/nyxt
===========

Simple, modern php framework

v1.1(5y ago)212[1 PRs](https://github.com/Milesq/nyxt/pulls)MITPHP

Since Jan 26Pushed 4y agoCompare

[ Source](https://github.com/Milesq/nyxt)[ Packagist](https://packagist.org/packages/milesq/nyxt)[ RSS](/packages/milesq-nyxt/feed)WikiDiscussions main Synced 3w ago

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

Nyxt - modern &amp; simple PHP framework
========================================

[](#nyxt---modern--simple-php-framework)

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

[](#installation)

You use this framework by [composer](https://getcomposer.org/)

`composer require milesq/nyxt`

Out of the box
--------------

[](#out-of-the-box)

What is included in this package?

- Routing based on file system (custom 404, public directory)
- Twig template engine
- Form validation based on rakit/validation
- Simple a'la ORM to help you manage your database (based on clancats/hydrahon)

Using
-----

[](#using)

Check our `examples/` directory

### Before start

[](#before-start)

Nyxt have a small boilerplate. You must redirect all requests (except request which starts from `/public`) to index.php

Example configuration for Apache

```
RewriteEngine On

RewriteRule ^(app|dict|ns|tmp)\/|\.ini$ - [R=404]

RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(?!public/)(.+)$ index.php [L,QSA]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
```

Now you can simply run framework from `index.php`

```
