Skip to content

Prerequisites

Where to start?

lethal.landing is mainly written in PHP therefore you should bring at least a beginner level of experience. Start by downloading the example_addon.zip, and extracting it into a convenient location of your choice.

Avoid Conflicts with official Add-ons

While adding routes and functions it is recommended to prefix your custom add-ons with at least c_. For example lethal.landing comes with a default route for https://example.com/contact if your add-on also adds the route /contact it would stand in conflict with the default one. To avoid these kind of issues use a prefix like c for custom which would result in https://example.com/c/contact. Same goes with functions, use c_isAdmin() instead of isAdmin(). Best case scenario is using an IDE like PhpStorm or VSCode that point issues like these out.