hotel-quickly / kahuna
Installs: 4 559
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 37
Forks: 0
Open Issues: 0
Requires
- nette/nette: ~2
Requires (Dev)
- nette/tester: ~1.4
This package is not auto-updated.
Last update: 2024-11-09 18:38:00 UTC
README
Installation
- Add to this repository to composer.json, or run:
$ composer require hotel-quickly/kahuna:@dev
- Register extension in your bootstrap.php
$configurator->onCompile[] = function ($configurator, $compiler) { $compiler->addExtension('kahuna', new \HQ\Kahuna\KahunaExtension()); };
Configuration
Add this to your config.neon
kahuna: apiBaseUrl: https://tap-nexus.appspot.com/api authUsername: abc #sandbox authPassword: abc #sandbox isSandbox: true
Usage
/** @var \HQ\Kahuna\Manager @autowire */ private $kahunaManager; $response = $this->kahunaManager->send(RequestFactory::PUSH, function (Push $request) { $request->setPayload('john.doe@hotmail.com', 'Hello test push!'); });
How to add new Request
-
- Create new file and extends from
RequestAbstract
class
- Create new file and extends from
-
- Add new const of request name to
RequestFactory
class
- Add new const of request name to
How to test
$ ./vendor/bin/tester tests/
The MIT License (MIT)
Copyright (c) 2014 Hotel Quickly Ltd.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.