0% found this document useful (0 votes)
106 views1 page

PHP Developer Coding Challenge

The document describes a coding test for a PHP developer position that involves building a REST API. The API needs to allow for user registration with various fields, profile creation and editing, and management of posts and comments by users with writer and editor roles. Applicants are asked to upload their code, database schema, and instructions to a repository, ensuring their code is production-ready, clean, and tested. It is also suggested that applicants demonstrate understanding of MVC, include unit tests, document API requests/responses, and use a PHP framework.

Uploaded by

Boyapati Bhavya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
106 views1 page

PHP Developer Coding Challenge

The document describes a coding test for a PHP developer position that involves building a REST API. The API needs to allow for user registration with various fields, profile creation and editing, and management of posts and comments by users with writer and editor roles. Applicants are asked to upload their code, database schema, and instructions to a repository, ensuring their code is production-ready, clean, and tested. It is also suggested that applicants demonstrate understanding of MVC, include unit tests, document API requests/responses, and use a PHP framework.

Uploaded by

Boyapati Bhavya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

# Coding test for PHP developer

Aim of this task is to better understand your thinking process and experience. Add your insight into
the task.

## Problem Description

Write a REST API with following features

1 .user registration.

Registration fields

-email

-phone

-password

-confirm password

2. Registered user can create, read and update their profile


Profile fields

-First name

-Last Name

-role (editor/writer)

3. User with writer role can create posts and read, update and delete only their posts

Article fields

-title

-post

4. User with writer role can read comments on his posts.

5. User with editor role can read all posts and comment on posts.

Upload code to Repository with database schema and doc explaining how to run code.

Please don’t forget, your code should be production ready, clean and tested!

## Nice to haves:

- Demonstrate understanding of MVC

- Unit Tests

- API request response documentation

- Usage of any PHP Framework

You might also like