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-04-08

Installation


Get myMVC

make sure that your local machine has PHP >=7.4 installed.

you have several options to get myMVC:

  • preferred method
    • cloning the 3.2.x repository branch - so you would have the possibility to perform updates (git pull) that are available for this branch
      git clone --branch 3.2.x https://github.com/gueff/myMVC.git myMVC;
  • get myMVC 3.2.x branch head
  • get the latest stable myMVC Release of myMVC
  • get the latest stable myMVC Release via
    • (make sure that your local machine has Composer2 installed)
      composer create-project --no-install gueff/myMVC myMVC;

cd into the root folder of myMVC, where the file myMVC.phar resides.

run myMVC.phar

cd myMVC; php myMVC.phar

The Auto-Installer will instantly begin 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.

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.

Run myMVC

Now start myMVC's local development server.

  • run myMVC.phar, it will show you a menu with some options.
  • enter 0 (or just press the <enter>-key) to run local development server.

run myMVC.phar

php myMVC.phar

menu

––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
myMVC
the PHP Framework
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
0 = 🏁 run local development server
1 = 📦 create a module
8 = 🔍 check on errors (php lint recursively)
9 = ⛔ exit
myMVC:~$  [<enter> = 0]
you entered: 0
[Wed Jul 27 07:20:00 2022] PHP 7.4.3 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.

myMVC Installation


Requirements

PHP

You need to have the PHP Version >=7.4 installed. Also you need some PHP-Extensions installed and PHP-functions enabled as listed below.

PHP Version

>=7.4

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
utf8_decode

Composer

You need to have the composer dependency manager installed.
Visit the project Website of composer for more details about how to set up composer.