|
1 | | -# Kayako handling plugin for MyAdmin |
| 1 | +# MyAdmin Kayako Support Plugin |
2 | 2 |
|
3 | | -Kayako handling plugin for MyAdmin |
| 3 | +[](https://github.com/detain/myadmin-kayako-support/actions) |
| 4 | +[](https://packagist.org/packages/detain/myadmin-kayako-support) |
| 5 | +[](https://packagist.org/packages/detain/myadmin-kayako-support) |
| 6 | +[](https://packagist.org/packages/detain/myadmin-kayako-support) |
4 | 7 |
|
5 | | -## Build Status and Code Analysis |
| 8 | +A MyAdmin plugin that integrates with the Kayako ticket and helpdesk system. It provides event-driven hooks for API registration, requirement loading, and settings management within the MyAdmin platform. The package exposes SOAP-compatible API functions for creating, listing, viewing, and replying to support tickets through Kayako. |
6 | 9 |
|
7 | | -Site | Status |
8 | | ---------------|--------------------------- |
9 | | - | [](https://travis-ci.org/detain/myadmin-kayako-support) |
10 | | - | [](https://codeclimate.com/github/detain/myadmin-kayako-support) [](https://codeclimate.com/github/detain/myadmin-kayako-support/coverage) [](https://codeclimate.com/github/detain/myadmin-kayako-support) |
11 | | - | [](https://scrutinizer-ci.com/g/myadmin-plugins/kayako-support/?branch=master) [](https://scrutinizer-ci.com/g/myadmin-plugins/kayako-support/?branch=master) [](https://scrutinizer-ci.com/g/myadmin-plugins/kayako-support/build-status/master) |
12 | | - | [](https://www.codacy.com/app/detain/myadmin-kayako-support) [](https://www.codacy.com/app/detain/myadmin-kayako-support?utm_source=github.com&utm_medium=referral&utm_content=detain/myadmin-kayako-support&utm_campaign=Badge_Coverage) |
13 | | - | [](https://coveralls.io/github/detain/myadmin-kayako-support?branch=master) |
14 | | - | [](https://packagist.org/packages/detain/myadmin-kayako-support) [](https://packagist.org/packages/detain/myadmin-kayako-support) [](//packagist.org/packages/detain/myadmin-kayako-support) [](https://packagist.org/packages/detain/myadmin-kayako-support) [](https://packagist.org/packages/detain/myadmin-kayako-support) [](https://packagist.org/packages/detain/myadmin-kayako-support) |
| 10 | +## Features |
15 | 11 |
|
| 12 | +- Registers ticket management API endpoints (create, list, view, reply) |
| 13 | +- Hooks into MyAdmin's event dispatcher for seamless plugin integration |
| 14 | +- Manages Kayako connection settings (API URL, key, secret) |
| 15 | +- Input validation with descriptive error messages on all API calls |
| 16 | +- Pagination support for ticket listing |
16 | 17 |
|
17 | 18 | ## Installation |
18 | 19 |
|
19 | | -Install with composer like |
| 20 | +Install with Composer: |
20 | 21 |
|
21 | 22 | ```sh |
22 | 23 | composer require detain/myadmin-kayako-support |
23 | 24 | ``` |
24 | 25 |
|
25 | | -## License |
| 26 | +## Configuration |
| 27 | + |
| 28 | +The plugin uses three configuration constants that should be defined in your MyAdmin environment: |
| 29 | + |
| 30 | +- `KAYAKO_API_URL` - The base URL for the Kayako REST API |
| 31 | +- `KAYAKO_API_KEY` - Your Kayako API key |
| 32 | +- `KAYAKO_API_SECRET` - Your Kayako API secret |
| 33 | + |
| 34 | +## Usage |
26 | 35 |
|
27 | | -The Kayako handling plugin for MyAdmin class is licensed under the LGPL-v2.1 license. |
| 36 | +The plugin registers itself through MyAdmin's event dispatcher. The `Plugin::getHooks()` method returns the event-to-handler mappings: |
| 37 | + |
| 38 | +```php |
| 39 | +use Detain\MyAdminKayako\Plugin; |
| 40 | + |
| 41 | +$hooks = Plugin::getHooks(); |
| 42 | +// Returns: ['api.register' => ..., 'function.requirements' => ..., 'system.settings' => ...] |
| 43 | +``` |
| 44 | + |
| 45 | +## Running Tests |
| 46 | + |
| 47 | +```sh |
| 48 | +composer install |
| 49 | +vendor/bin/phpunit |
| 50 | +``` |
| 51 | + |
| 52 | +## License |
28 | 53 |
|
| 54 | +Licensed under the LGPL-2.1. See [LICENSE](https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html) for details. |
0 commit comments