This is a product star rating system that can be integtated with you PHP framework (Laravel, Cakephp, etc)
- Apache Web Server
- PHP7.2
- MySql
-
Install Apache Server
-
Install PHP
brew search phpbrew install php@7.2
-
Install MySql
brew install mysql@5.7
-
Import sql files into mysql databse
mysql -u username -p databsename < product.sqlmysql -u username -p databsename < product_rating.sqlmysql -u username -p databsename < product_users.sql -
Set up local Apache development server
- After insatll apache, put the project in the apache web directory
- run
sudo apachectl startyou can access the webpage by visiting http://localhost .
-
Configuration
- Option 1: Customer need login to make a comment or rating
- go to class/Rating.php, change $settingClass = 'loginRequired'
- Option2: Customer doesn't need login to make a comment or rating
- go to class/Rating.php, change $settingClass = ''
- Option 1: Customer need login to make a comment or rating


