en un clic
directadmin-licensing
directadmin-licensing contient 4 skills collectées depuis myadmin-plugins, avec une couverture métier par dépôt et des pages de détail sur le site.
Skills dans ce dépôt
Adds a new DirectAdmin API function to `src/directadmin.inc.php` using the `directadmin_req()` cURL wrapper. Use when user says 'add API call', 'new DA endpoint', 'call directadmin', or needs a new function in `directadmin.inc.php`. Handles `DIRECTADMIN_USERNAME`/`DIRECTADMIN_PASSWORD` auth and `myadmin_log()` logging automatically via the wrapper. Do NOT use for modifying `Plugin.php` hooks or settings registration.
Implements a complete paid or free DirectAdmin license lifecycle operation (activate/deactivate/change-IP) across Plugin.php and directadmin.inc.php. Use when user says 'add license type', 'support new lifecycle event', 'handle IP change', 'extend free/paid branching logic', or modifies getActivate()/getDeactivate(). Covers run_event('get_free_da_service_types') check, function_requirements() loading, and $serviceClass->setKey()->save() pattern. Do NOT use for settings changes, OS modification, or non-DirectAdmin license plugins.
Writes PHPUnit test methods matching patterns in `tests/DirectadminIncTest.php` and `tests/PluginTest.php`. Use when user says 'write tests', 'add test for', 'test this function', or adds new functions to `src/`. Covers `assertStringContainsString()` source-scan tests, `ReflectionClass` method signature tests, and return value assertions. Do NOT use for integration tests requiring a live DA API or database.
Adds a new event hook to src/Plugin.php following the getHooks() + getRequirements() pattern. Use when user says 'add hook', 'register event', 'handle new license event', or adds a handler method to Plugin. Covers getHooks() registration, getRequirements() loader entry, and static method with GenericEvent $event signature. Do NOT use for modifying existing hooks or adding functions to directadmin.inc.php alone.