This website uses Cookies to provide you with the best possible service. Please see our Privacy Policy for more information. Click the check box below to accept cookies. Then confirm with a click on "Save".  
Status: 2023-07-24

Installation


Get myMVC

make sure that your machine has PHP >=8.0 installed (see Requirements).

preferred method 🗸

requires git installed.

clone the 3.3.x repository branch - this way you have the possibility to perform patch-level updates via git pull command that are available for this branch.

git clone --branch 3.3.x https://github.com/gueff/myMVC.git myMVC_3.3.x;

alternative methods


Initialize myMVC

cd into the root folder of myMVC and run emvicy.php

cd myMVC_3.3.x/; 
php emvicy.php
  • A new Environment config file /.env will be created automatically containing MVC_ENV=develop (see /3.3.x/configuration#Environment).
  • The Auto-Installer begins to install all necessary files. (In case of errors, a text will prompt up showing details about what went wrong). This may take a moment.

Example output

setup checking
• MVC_ENV is: develop
• User/Group from /public/index.php: admin1(1000) / admin1(1000)
• Installing required Main Application libraries via composer in Background with PID 84623. Please wait.
.......Installation completed.

After that, start myMVC's local development server.

php emvicy.php s

Example output

dev@linux:~/var/www/myMVC_3.3.x$ php emvicy.php s
export MVC_ENV='develop'; /opt/lampp_8.2.0/bin/php-8.2.0 -S 127.0.0.1:1969 -t ./public/
--------------------------------------------------------------------------------
[Sun Jul 16 12:28:05 2023] PHP 8.2.0 Development Server (http://127.0.0.1:1969) started

Now you can call your application in your web browser at http://127.0.0.1:1969.

You should see this Frontend
myMVC Installation


Requirements

Operating System

  • Linux
  • binaries available: sed, find, grep, mv, xargs, rm, ps

PHP

  • Version: >=8.0

Also you need some PHP-Extensions installed and PHP-functions enabled as listed below.

Required PHP Extensions

Core
ctype
curl
date
dom
fileinfo
filter
iconv
json
mbstring
Phar
posix
Reflection
session
SimpleXML
standard
SPL
zip

Required PHP Functions

mb_strlen
iconv