This is an implementation of Elo to rate quotes, it was made as an inside joke but can be reused my anyone.
The Elo rating system was used to rank the images.
quotes.sql
is the sql creation file for the "quotes" table that the php code needs.
The scripts folder has some php scripts used to populate the table with links to images.
-
Install Apache, MySQL, PHP and Composer.
-
Copy the
.env.example
and rename it to.env
and change the values in it -
Import the quotes table from
quotes.sql
. This can be done in multiple way depending on how you communicate with your database. -
Add quotes using the php scripts in the scripts folder. The format of the quote text is as following
Some quote text
following by§
and theContext
, soSome quote text § Context
enterdata.php is used to enter all the quotes into the database. Run this in the linux commandline as
php enterdata.php < quotes.txt`
-
Run
composer install
orphp composer.phar install
depending on your install -
Start apache and visit your page.