Skip to content
Hotel Project using PHP (OOP), MongoDB and Redis during my formation
PHP HTML CSS
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
public
src
templates
.gitattributes
.gitignore
README.md
add_admin.php
composer.json
composer.lock
phpcs.xml

README.md

Hotel

Configure

  • rename config_rename.php to config.php and set your databases
  • you can change the port but you should impact it on the command line to run the server
  • run "composer install" to install the dependencies

Run the server

Type on a terminal : "php -S localhost:8000 -t public"

Commands

Run PHP Code Sniffer (check PSR-12 compatibility): "vendor/bin/phpcs"

Run PHP Code Beautifier and Fixer (Fix the errors from the previous command) : "vendor/bin/phpcbf"

Add a administrator (update the add_admin.php file) and execute it using on the folder project : "php add_admin.php"

You can’t perform that action at this time.