PHPackages                             iviphp/ivi - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. iviphp/ivi

ActiveProject[HTTP &amp; Networking](/categories/http)

iviphp/ivi
==========

The official application skeleton for building modular web and console applications with IviPHP.

v2.0.0(4w ago)1649MITPHPPHP &gt;=8.2CI passing

Since Nov 4Pushed 4w ago1 watchersCompare

[ Source](https://github.com/iviphp/ivi)[ Packagist](https://packagist.org/packages/iviphp/ivi)[ RSS](/packages/iviphp-ivi/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (19)Versions (58)Used By (0)

Ivi
===

[](#ivi)

The official application skeleton for building modular web and console applications with IviPHP.

`iviphp/ivi` provides a minimal project structure powered by `iviphp/framework`. It includes application bootstrapping, configuration, service providers, console commands and writable storage directories without imposing a large application architecture.

Requirements
------------

[](#requirements)

- PHP 8.2 or later
- Composer
- Required PHP extensions for the database driver used by the application

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

[](#installation)

Create a new IviPHP application:

```
composer create-project iviphp/ivi my-application
```

Enter the project directory:

```
cd my-application
```

Create the local environment file:

```
cp .env.example .env
```

Make the console executable:

```
chmod +x bin/console
```

Display the available commands:

```
php bin/console
```

or:

```
./bin/console
```

Project structure
-----------------

[](#project-structure)

```
.
├── bin/
│   └── console
├── bootstrap/
│   └── app.php
├── config/
│   ├── app.php
│   └── database.php
├── public/
│   └── index.php
├── src/
│   ├── Console/
│   │   └── Commands/
│   │       └── AboutCommand.php
│   ├── Http/
│   │   └── Controllers/
│   └── Providers/
│       └── AppServiceProvider.php
├── storage/
│   ├── cache/
│   ├── logs/
│   └── views/
├── .env.example
├── composer.json
├── LICENSE
└── README.md

```

Application bootstrap
---------------------

[](#application-bootstrap)

The application is created in:

```
bootstrap/app.php

```

This file:

- loads Composer;
- reads the local `.env` file;
- loads application configuration;
- creates the framework instance;
- registers application service providers;
- registers console commands;
- returns the configured framework.

Example:

```
