Installation
Get myMVC
make sure that your local machine has PHP >=7.4 installed.
you have several options to get myMVC:
- get the latest stable myMVC Release of myMVC: https://github.com/gueff/myMVC/releases/latest
- get the latest stable myMVC Release via composer (make sure that your local machine has Composer2 installed)
composer create-project --no-install gueff/myMVC myMVC;
- get myMVC
3.2.x
branch head: https://github.com/gueff/myMVC/archive/refs/heads/3.2.x.zip - cloning the
3.2.x
repository branch - so you would have the possibility to perform updates (git pull
) that are available for this branchgit clone --branch 3.2.x https://github.com/gueff/myMVC.git 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.
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.
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.