Recently I have been working on some integration projects which require custom APIs to be built in Magento. As we know Magento support SOAP and REST as 2 main types of APIs. SOAP used to be the main API suite in Magento 1. But REST has become the main stream web API that developers are… Continue reading Have some REST in Magento 2
Tag: php
Magento 2 Unit Test
Test plays a vital role in any types of software development to ensure the deliverable is robust and bug free. Magento 1(M1) comes with NO test suite and unit testing M1 codebase is considered as a nightmare. Good idea, but no one do it:( So you never see any M1 modules come with a test… Continue reading Magento 2 Unit Test
Create custom URL redirects in Magento 2
Motivation I need to be able to redirect referral links that the user shares and track the request. Basically I have a module that generates referrals for every user so that he/she can share the link with his/her friends. Every time the link is clicked, it will record the clickthrough and do something. Things can… Continue reading Create custom URL redirects in Magento 2
Setting up a local development environment with Laravel Valet for Magento 2 development
Setting up a Magento 2 development environment requires quite a bit of work. Back in the old days, we need to manually install LAMP stack on the computer and configure virtual hosting, update /etc/hosts and etc. That is just boring! Although nowadays, we have VM, Vagrant and Docker, the performance is still not very impressive… Continue reading Setting up a local development environment with Laravel Valet for Magento 2 development