The goal of this mini-project is to develop some PHP classes that allow Magento product information to be displayed in several different formats (CSV, XML, and JSON). You will be connecting to a Magento store that sells children's golf apparel: https://www.shopjuniorgolf.com/
If you feel like this exercise is over your head, you may be interested in our intern-to-full-time internship program. You may apply to that program here: https://www.razoyo.com/developer-internship/
There are 2 external files that are included into this script.
- raz-lib.php is where we provided classes and interfaces (do NOT touch)
- dev-lib.php is where you should put any of your classes
Magento API docs: http://www.magentocommerce.com/api/soap/introduction.html
Make sure that your code meets each of the following requirements.
- Use the SOAP V1 API protocol to query data.
- Script must be able to ouput records in CSV, XML, and JSON format.
- Create a FormatFactory class that uses constants for the format codes (csv, xml, json).
- Records must ONLY include the following fields: SKU, Name, Price, and Short Description
- Must not use any of the built-in PHP encoding functions (i.e. json_encode, SimpleXML, etc.)
- The CSV format must have a header row
- Variables, functions, and classes should have descriptive names (in English).
- Organize your code according to Object Oriented Programming best practices.
You will need an API key that should've been provided to you. The script works by pulling the password from an environment variable called RAZOYO_TEST_KEY. If you need the password please email me (see below).
Feel free to email me if you have any questions William Byrne (wbyrne@razoyo.com).