Skip to content

Latest commit

 

History

History
122 lines (89 loc) · 3.31 KB

installation.md

File metadata and controls

122 lines (89 loc) · 3.31 KB

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

<iframe width="560" height="315" src="https://www.youtube.com/embed/I4qcD-t9IP8?si=8k4ucCeeGm5zOP2v" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

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