为客户添加了带有管理预订功能的酒店预�ervation系统。
This project was created as a learning exercise during my early days of exploring web programming. It is not intended for commercial use or enterprise-grade deployment. As a result, the code may contain vulnerabilities, as the focus was on simplicity and functionality rather than robustness or security.
If you’d like to customize or improve the project, feel free to fork it and make your own changes. Please note that I am unable to dedicate time to refactoring or enhancing this project further.
Thank you for understanding!
MySQL and a web server to run/interpret PHP in your system.xampp/htdocs/ if you're using windows, otherwise check tutorial(s) for your corresponding web server and OS. npm install and PHP, composer install.hotel and run the script hotel.sql to create tables and populate data. Make sure your configuration matches with app/DB.php, otherwise make the desired changes.Customer
Room pricing
Reservation form
View reservation(s)
About user
Admin
Run PHP unit tests
$ ./vendor/bin/phpunit tests$ ./vendor/bin/phpunit tests/CustomerHandlerTest.php$ ./vendor/bin/phpunit --filter testUpdateCustomer testsRun PHP code beautifier and fixer
$ ./vendor/bin/phpcbf app/process_login.php --standard=ruleset.xml$ ./vendor/bin/phpcbf app/*/*.php --standard=ruleset.xmlRun ESLint to format/fix JavaScript code
npm run eslintnpm run eslint -- --fix暂无开放 Issues,或尚未同步最近议题。