Skip to content

Latest commit

 

History

65 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HotelPriceReportSystem

A PHP-based hotel price tracking, analysis, and reporting application.

Features

  • Authentication flow (login + verification code)
  • Dashboard
  • Price analysis
  • Reporting
  • Notifications
  • Hotel text/property management
  • Admin-only user management
  • Middleware-based access control

Tech Stack

  • PHP
  • Composer autoload
  • PDO
  • Custom router (App\Core\Route)
  • Middleware (App\Middleware\AuthMiddleware)
  • Frontend: HTML/CSS/JavaScript (including charts)

Project Structure

  • public/ → app entry point (index.php)
  • app/Controller/ → controllers
  • app/Models/ → database/model layer
  • views/ → UI templates
  • vendor/ → Composer dependencies
  • app/cron/ → cron scripts

Routes

Defined in public/index.php:

  • /Sign\SignController@index
  • /verify-codeSign\SignController@verifyCode

Authenticated routes:

  • /mainFront\MainController@index
  • /priceanalyzeFront\PriceAnalyzeController@index
  • /reportFront\ReportController@index
  • /hoteltextFront\HotelTextController@index
  • /notificationsFront\NotificationsController@index

Authenticated + admin only:

  • /usersFront\UsersController@index

Setup

  1. Clone the repository.
  2. Install dependencies:
    • composer install
  3. Configure your web server document root to public/.
  4. Configure PHP/database settings.
  5. Start the application.

Local Run

Use MAMP/Apache/Nginx and serve through public/index.php.

Cron (Optional)

Example daily job at 12:00:

0 12 * * * /Applications/MAMP/bin/php/php8.3.14/bin/php "/Users/hunterlion/Documents/Belgeler - Çınar MacBook Air/Documents/OtelFiyatRaporlama/app/cron/priceupdate.php" >> "/Users/hunterlion/Documents/Belgeler - Çınar MacBook Air/Documents/OtelFiyatRaporlama/app/logs/priceupdate_cron.log" 2>&1

Error Handling

If no route matches:

  • HTTP 404
  • Response: 404 - Sayfa Bulunamadı

Note

Session is started in public/index.php via session_start().

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages