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
- get myMVC
3.3.x
branch head: 📥 https://github.com/gueff/myMVC/archive/refs/heads/3.3.x.zip - get the latest stable myMVC Release of myMVC (🛈 latest stable Releases may be relate on other branches than
3.3.x
)- Go to download page:
https://github.com/gueff/myMVC/releases/latest
- Or install via Composer (requires Composer2 installed)
composer create-project --no-install gueff/myMVC myMVC;
- Go to download page:
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 containingMVC_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
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