The process of applying for a Moroccan e-visa is quite similar to that of other countries though the requirements are more.
Important to understand:
E-visas are only for people who wish to stay in Morocco for a period of 90 days or less. If you stay in Morocco for more than 3 months you are not eligible for visa application. You have to apply for a residence permit.