PHPackages                             reves/val - 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. reves/val

ActiveLibrary[Framework](/categories/framework)

reves/val
=========

Backend PHP Framework

v1.1.1(1y ago)28MITPHPPHP ^8.3

Since Feb 8Pushed 1y ago1 watchersCompare

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

READMEChangelog (4)DependenciesVersions (5)Used By (0)

val
===

[](#val)

val is a PHP web framework mainly for single page applications.

#### Requirements

[](#requirements)

- PHP &gt;= 8.3
- Composer
- Mbstring PHP Extension
- Sodium PHP Extension

#### Out of the box compatibility

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

- Databases: SQLite, PostgreSQL, MySQL / MariaDB
- Servers: Apache, Nginx

#### Table of contents:

[](#table-of-contents)

- [Installation](#installation)
- [How it works](#how-it-works)
- [Conventions](#conventions)
- [CLI](#cli)
- [Configuring the server](#configuring-the-server)
- [Configuring the app and environments](#configuring-the-app-and-environments)
- [Serving the View](#serving-the-view)
- [Creating an API](#creating-an-api)
- [Migrations](#migrations)
- [Documentation](#documentation)

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

[](#installation)

#### 1. Add to `composer.json` the following script that will automatically create the CLI tool on installation.

[](#1-add-to-composerjson-the-following-script-that-will-automatically-create-the-cli-tool-on-installation)

```
"scripts": {
    "post-update-cmd": "Val\\Console::create"
},
```

#### 2. Run the installation.

[](#2-run-the-installation)

```
composer require reves/val
```

How it works
------------

[](#how-it-works)

Usage example in `public/index.php`:

```
