Translations:Manual:Extension registration/29/en

You can specify a 'callback' key in your extension.json if you need to execute some PHP code.