Framework installation and launch
Installation via composer
composer create-project makscraft/mv-framework project_name
- If your project is located at the domain root, get into the domain root directory and run the composer command with the . (dot) value instead of project_name.
- If your project is located not at the domain root, you will need to specify the project subdirectory like /my/project/ during the composer installation.
- All the other critical settings will be generated automatically by composer.
- After the intallation process run your http server and check your app.
Manual installation
- Download archive from current site.
- Unzip the contents into your project folder.
- Fill the database section in the .env file at the root directory (sqlite is set by default, in this case you don't need to fill anything for start).
- For mysql database initial dump is located at the /userfiles/database directory. Upload it into your database.
- If your project is located not at the domain root, you need to fill APP_FOLDER setting in .env file and RewriteBase value in .htaccess file with the same value like /my/project/.
- You may not fill APP_TOKEN value in .env file, because later MV will generate random value for you and ask you to put it into .env file.
- After the intallation process run your http server and check your app.
System update
Regularly the core classes and admin panel of MV are being updated to fix the issues and implement new features.
If you installed MV via composer, run the update command.
composer update
In order to update the core of the working project manually, do the next steps:
- Download the latest version of MV framework from this site or the latest release from github.
- Copy "adminpanel" and "core" folders over the old ones.
- Also you need to update "/config/autoload.php" file with the lataset one.
Changing the location of admin panel
To increase the confidentiality the directory of admin panel can be renamed to be available via a different link. To do this:
- Rename "adminpanel" directory.
- Change the value of "AdminFolder" option in "config/setup.php" file to the name of new folder.