Skip to content

igoves/php-mvc-auth-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP MVC Authorization system Build Status

Overview

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.

Main Screen


Installing and start

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 :

Stop and clear services

sudo docker-compose down -v

Use Makefile

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

Examples

Start the application :

sudo make docker-start

Use Docker commands

Testing PHP application with PHPUnit

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

Screenshots

Main Screen

Login

Profile

Profile


About me

Hello, my name is Igor Veselov. I am Senior Full Stack Web Developer. Main specialization - Ecommerce websites. Opened for interesting offers.


Contacts