The form includes the following details about a user:
- Full name
- Username
- Birth date
- Phone number
- Address
- Password
- Profile picture
Each user should have a unique username.
Profile pictures are stored on the server and referenced in the User table in the database.
Beside the birth date field in the form, there should be a button that when clicked, a list of actors who are born on the same day is shown. Use this API: Online Movie Database, specifically these two endpoints:
actors/list-born-today
: Retrieves a list of actors born in a same input day.actors/get-bio
: Retrieves actor details by passing an actor ID.
Before running, take a look at php.ini and make sure that the extensions_dir
variable is defined correctly.
Also, open db.php, and change the database credentials:
$database = new Database("<HOST>", "<DATABASE_NAME>", "<USERNAME>", "<PASSWORD>");
Then, run the following command:
php -S localhost:8000 -c ./php.ini