OOP PHP MVC Authorization system without framework. Included 2 languages, main(profile) page, page authorization and page registration with same fields and upload photo. Docker running Nginx, PHP-FPM, Composer, MySQL and PHPMyAdmin.
To install Git, download it and install following the instructions :
git clone https://github.com/utz0r2/php-mvc-auth-system.git
Go to the project directory :
cd php-mvc-auth-system
Start the application :
sudo docker-compose up
Open your favorite browser :
- http://localhost:8000
- http://localhost:8080 PHPMyAdmin (username: root, password: root)
Stop and clear services
sudo docker-compose down -v
When developing, you can use Makefile for doing the following operations :
Name | Description |
---|---|
code-sniff | Check the API with PHP Code Sniffer (PSR2 ) |
composer-up | Update PHP dependencies with composer |
docker-start | Create and start containers |
docker-stop | Stop and clear all services |
logs | Follow log output |
mysql-dump | Create backup of all databases |
mysql-restore | Restore backup of all databases |
phpmd | Analyse the API with PHP Mess Detector |
test | Test application with phpunit |
Start the application :
sudo make docker-start
docker-compose exec -T php ./vendor/bin/phpunit
Fixing standard code with PSR2
docker-compose exec -T php ./vendor/bin/phpcbf -v --standard=PSR2 ./app
Checking the standard code with PSR2
docker-compose exec -T php ./vendor/bin/phpcs -v --standard=PSR2 ./app
Analyzing source code with PHP Mess Detector
sudo docker-compose exec -T php ./vendor/bin/phpcs ./app text cleancode,codesize,controversial,design,naming,unusedcode
Hello, my name is Igor Veselov. I am Senior Full Stack Web Developer. Main specialization - Ecommerce websites. Opened for interesting offers.
- SKYPE: utz0r2
- EMAIL: [email protected]
- WWW: https://dev.xfor.top/
- LinkedIn: https://www.linkedin.com/in/igor-veselov/
- github: https://github.com/utz0r2