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-11-19

Installation


Get myMVC

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

Installation :: preferred method 🗸

clone the 3.4.x repository branch - this way you have the possibility to perform patch-level updates that are available for this branch (requires git to be installed).

command

git clone --branch 3.4.x https://github.com/gueff/myMVC.git myMVC_3.4.x;

🛈 the repository url for this version is: https://github.com/gueff/myMVC/tree/3.4.x

see complete installation video

Installation :: alternative methods


Initialize myMVC

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

cd myMVC_3.4.x/; 
php emvicy.php
  • A new Environment config file /.env will be created automatically containing MVC_ENV=develop (see /3.4.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

admin1@erazer:/tmp/foo/myMVC_3.4.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/
--------------------------------------------------------------------------------
export MVC_ENV='develop'; /opt/lampp_8.2.0/bin/php-8.2.0 -S 127.0.0.1:1969 -t ./public/
[Sun Nov 19 15:53:29 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