MV framework logo
  • Architecture
  • Philosophy
  • Admin panel
  • Support
  • Feedback
Documentation
Download .zip version 3.2.0 from 25.12.2024
  • Architecture
  • Philosophy
  • Admin panel
  • Support
  • Feedback
Getting started
  • Installation and launch
  • Folder structure
  • Launching a simple website
  • Pre-installed models
  • SQLite getting started
  • System settings
  • Migrations
  • Debugging
Models
  • General principles of models
  • Data types
  • Model setup
  • Simple models
  • Foreign keys
  • Trees
  • Many to many
  • Group
  • Records management
  • Managing simple models
  • Additional features
Templates and routing
  • General principles of templates
  • Router object
  • MV object
  • Create a new template
  • Output of data in template
  • Record object
  • Files and images
  • Date and time
  • Redirects and http
  • Sending email
  • Special methods
Forms
  • Creating forms
  • Setting up form fields
  • Validating form fields
  • Form security
  • Working with form data
  • Using data from models
  • Form methods
SQL queries
  • Query builder
  • Direct queries
  • Pagination
  • Sorting
  • Filtration
Additional
  • AJAX
  • Plugins
  • Caching
  • Security
  • Admin panel add-ons
Documentation
Getting started
  • Installation and launch
  • Folder structure
  • Launching a simple website
  • Pre-installed models
  • SQLite getting started
  • System settings
  • Migrations
  • Debugging
Models
  • General principles of models
  • Data types
  • Model setup
  • Simple models
  • Foreign keys
  • Trees
  • Many to many
  • Group
  • Records management
  • Managing simple models
  • Additional features
Templates and routing
  • General principles of templates
  • Router object
  • MV object
  • Create a new template
  • Output of data in template
  • Record object
  • Files and images
  • Date and time
  • Redirects and http
  • Sending email
  • Special methods
Forms
  • Creating forms
  • Setting up form fields
  • Validating form fields
  • Form security
  • Working with form data
  • Using data from models
  • Form methods
SQL queries
  • Query builder
  • Direct queries
  • Pagination
  • Sorting
  • Filtration
Additional
  • AJAX
  • Plugins
  • Caching
  • Security
  • Admin panel add-ons
MV tracker

Installing and running the framework

Installation with Composer

composer create-project makscraft/mv-framework project_name

If your project is located at the root of the domain, go to the domain's root directory and run the composer command with a . (dot) instead of project_name.

cd project_directory
composer create-project makscraft/mv-framework .

If your project is not in the root of the domain, you will need to specify the project's subdirectory, such as /my/project/, during the composer installation. All other basic settings will be generated automatically.

If you selected MySQL as the database during the installation process, the installer will prompt you to enter the connection details in the .env file, then go to the project directory and run the command:

cd project_directory
composer mv:database

After the installation process, start your HTTP server and check the application. A start page with menu links and access to the admin panel should open.

After Installation

To set localization when installing through Composer, run the command in the project directory:

composer mv:region -- de

Also, for full functionality on a production server, you need to fill in the following parameters in the .env file:

APP_ENV=production
APP_DOMAIN=https://mydomain.com
APP_TIMEZONE=Europe/London
EMAIL_FROM='Name and Email address'
On the production server, you need to set write permissions for the userfiles folder and all nested folders, as well as for the log folder.

Manual installation

  1. Download the archive from the current site and unpack the contents into your project folder.
  2. Fill in the database section in the .env file in the root directory (sqlite is set by default, in which case you don't need to fill anything for it to work).
  3. For MySQL, the initial dump is located in the /userfiles/database directory. Upload it to your database.
  4. If your project is not in the domain root, you need to fill in the APP_FOLDER setting in the .env file and the RewriteBase value in the .htaccess file with the same value, e.g., /my/project/.
  5. You don’t need to fill in the APP_TOKEN value in the .env file, as MV will later generate a random value and ask you to place it in the .env file.
  6. After the installation process, start your HTTP server and check the application.
  7. To set the localization package, set APP_REGION=de in the .env file and copy the models and views folders from the customs/regions/de directory over the project’s root folders.

The admin section is located at /adminpanel, with the initial login and password set to 'root' and 'root'.

The initial user is a superuser (Root with an id of 1). This user cannot be deleted or blocked and always has access to all system modules without restrictions.

System update

The MV core and admin panel are periodically updated, with bug fixes and new features added. To update the MV framework, follow these steps.

If MV was installed via Composer:

cd project_directory
composer update

For a manual installation:

  1. Download the latest version of the MV core from this site or from the Github repository: https://github.com/makscraft/mv-core.
  2. Go to the root of your project.
  3. Copy over the old folders with the following folders: adminpanel, core, and the config/autoload.php file.
  4. If the admin panel folder was renamed, you need to update its contents.

Changing the admin panel folder

To enhance privacy, the admin panel folder can be renamed, and site management will be available at a different URL. To do this:

  1. Rename the adminpanel folder.
  2. In the config/setup.php file, change the 'AdminFolder' option to the name of the new folder.

Next section

Folder structure
MV workshop banner
MV tracker

© 2014-2025, MV framework team

MV tracker project Github