This project is the code base of the PHP Test Task for the company Loyalty Corp. It is based on a really simple version of Laravel Lumen.
This test task requires you to implement a new feature into an existing RESTful API.
The API is built to interact with MailChimp via their API, handling CRUD operations for LISTS and MEMBERS.
This task assumes all interaction will take place via this API, therefore data should be stored locally and only retrieved from MailChimp when required.
The current API contains code which allows the creation, retrieval, update and deletion of lists. You are required to add a feature to this existing code to allow the creation, retrieval update, and deletion of members within a list.
The implementation for LISTS have been made already. The scope of this task is to update the current code base to implement CRUD operations for members:
- Add members to a list
- Update members within a list
- Remove members from a list
- Retrieve members from a list
This task requirements are as follows:
- Each external libraries are loaded via composer
- The database layer used is Doctrine via the laravel-doctrine/orm package
- The interaction with MailChimp API is made using pacely/mailchimp-apiv3
To complete this task you can either:
- Register on MailChimp, create your API key to use in your application
- Fork this repository, update the code base and send the URL of your repository to the reviewer(s)
- Clone this repository into your local environment, update the code base and send a zip of the repository to the reviewer(s)