Create a User in Moodle via API in PHP A simple snippet of code to create a user with custom fields in Moodle using PHP (Internally used from borg)