This skill provides comprehensive guidance for building custom Moodle web services, ensuring compliance with Moodle's strict external API framework. It automates the creation of the required three-method class structure (parameters, logic, and returns), handles complex database operations, and manages service registration in the plugin database. By following these patterns, developers can safely expose Moodle functionality to external applications, mobile apps, or AJAX frontends while maintaining enterprise-grade security, capability checks, and rigorous data validation.
Key Features
01Implements secure parameter validation using Moodle PARAM constants
020 GitHub stars
03Includes advanced patterns for course module management and transactions
04Provides templates for db/services.php registration
05Automates capability and context checks for LMS security
06Generates the mandatory Moodle external API three-method pattern