بنقرة واحدة
swift-backups
يحتوي swift-backups على 4 من skills المجمعة من myadmin-plugins، مع تغطية مهنية على مستوى المستودع وصفحات skill داخل الموقع.
Skills في هذا المستودع
Creates a new CLI script in `bin/` following the bootstrap + `function_requirements('class.Swift')` + `new Swift()` pattern. Handles auth via `$sw->authenticate()`, argument parsing via `$_SERVER['argv']`, and output via `echo`/`print_r`. Use when user says 'add bin script', 'new CLI tool', 'command line utility', or adds files to `bin/`. Do NOT use for src/ class changes or Plugin.php modifications.
Writes PHPUnit 9.6 tests under `tests/` in the `Detain\MyAdminSwift\Tests` namespace. Use when user says 'write tests', 'add test coverage', 'PHPUnit', or creates files in `tests/`. Covers structural assertions via ReflectionClass and anonymous-class stubs for dependency injection. Do NOT trigger for production code changes in `src/` or `bin/`.
Adds or modifies event hooks in `src/Plugin.php` using Symfony `GenericEvent` and the `getHooks()` registry. Covers `system.settings` text/password settings and `function.requirements` loader patterns. Use when user says 'add setting', 'register hook', 'new plugin event', or edits `src/Plugin.php`. Do NOT use for `src/Swift.php` or `bin/` changes.
Adds a new method to `src/Swift.php` following the cURL options pattern. Sets up `CURLOPT_HTTPHEADER` with `X-Auth-Token`, disables SSL verify, calls `getcurlpage()`, and parses the response. Use when user says 'add Swift method', 'new container operation', 'add endpoint to Swift', or modifies `src/Swift.php`. Do NOT use for bin scripts or Plugin hook changes.