PHPackages                             rashedraju/minivel - 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. rashedraju/minivel

ActiveLibrary

rashedraju/minivel
==================

v1.0.4(4y ago)19PHP

Since Sep 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/rashedraju/minivel)[ Packagist](https://packagist.org/packages/rashedraju/minivel)[ RSS](/packages/rashedraju-minivel/feed)WikiDiscussions main Synced 4d ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

MINIVEL
=======

[](#minivel)

PHP MVC Framework

\# Installation Via Composer
----------------------------

[](#-installation-via-composer)

If your computer already has PHP and Composer installed, you may create a new Minivel project by using Composer directly. After the application has been created, you may start local development server using PHP Built-in web server.

```
composer create-project rashedraju/minivel my-app
cd my-app
php -S localhost:8080 -t public

```

\# Environment Configuration
----------------------------

[](#-environment-configuration)

The root directory of your application will contain a .env.example file that defines many common environment variables. Create a .env file to your application root directory and add your database connection information as well as various other core configuration.

\# Migrations
-------------

[](#-migrations)

Migrations are like version control for your database, allowing your team to define and share the application's database schema definition. To run the migrations:

```
php migration.php

```

#### Generating migration

[](#generating-migration)

You can write your own database schema inside the migrations directory and run migration to apply them.

#### Migration structure

[](#migration-structure)

To create database schema migration create a new php file inside migrations directory.

File name should follow this naming convention: \[mYourMigrationNumber\_your\_migration\_name.php\]

A migration class contains two methods:  up  and down. The up method is used to add new tables, columns, or indexes to your database, while the down method should reverse the operations performed by the up method.

```
