- PHP 8.0+
- Composer
git clone https://github.com/paulolorenzobasilio/optimy-php-test.git
- install the dependencies
composer install
- create an empty database named "phptest" on your MySQL server
- import the dbdump.sql in the "phptest" database
- copy env file:
cp .env.dist .env
- update your Mysql Credentials
DB_HOST="localhost" DB_USER=root DB_PASSWORD=root
- you can test the demo script in your shell:
php index.php
This simple application works, but with very old-style monolithic codebase, so do anything you want with it, to make it:
- easier to work with
- more maintainable
- added autoloading
- added doctrine as a data mapper in database
- added foreign key relationship between two entities