Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

contributte/mobilni-platby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

54 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Website πŸš€ contributte.org | Contact πŸ‘¨πŸ»β€πŸ’» f3l1x.io | Twitter 🐦 @contributte

Disclaimer

⚠️ This project is no longer being maintained.
Composer contributte/mobilni-platby
Version
PHP
License

Usage

composer require contributte/mobilni-platby

Versions

State Version Branch PHP
dev ^0.2 master >= 7.1
stable ^0.1 master >= 7.1

Usage

Custom dispatcher

<?php declare(strict_types = 1); namespace Your\App; use Contributte\MobilniPlatby\IDispatcher; use Contributte\MobilniPlatby\Request\AbstractRequest; use Contributte\MobilniPlatby\Response\AbstractResponse; use Contributte\MobilniPlatby\Response\Response; class TestDispatcher implements IDispatcher { public function dispatch(AbstractRequest $request): AbstractResponse	{ return new Response('This is super!');	} }

Example presenter

<?php declare(strict_types = 1); namespace Your\App\Presenters; use Contributte\MobilniPlatby\Dispatcher\CallbackDispatcher; use Contributte\MobilniPlatby\Request\ConfirmRequest; use Contributte\MobilniPlatby\Request\RequestFactory; use Contributte\MobilniPlatby\Request\SmsRequest; use Contributte\MobilniPlatby\Response\AbstractResponse; use Contributte\MobilniPlatby\Response\ConfirmResponse; use Contributte\MobilniPlatby\Response\Response; use Nette\Application\UI\Presenter; class SmsPresenter extends Presenter { public function actionSms1(): void	{ $requestFactory = new RequestFactory($this->getHttpRequest()); $dispatcher = new TestDispatcher(); $this->sendResponse($dispatcher->dispatch($requestFactory->create()));	} public function actionSms2(): void	{ $requestFactory = new RequestFactory($this->getHttpRequest()); $dispatcher = new CallbackDispatcher(); $dispatcher->registerSmsCallback(function (SmsRequest $request, Response $response): AbstractResponse { return new Response('My response!');	}); $dispatcher->registerConfirmCallback(function (ConfirmRequest $request, ConfirmResponse $response) { return new ConfirmResponse();	}); $this->sendResponse($dispatcher->dispatch($requestFactory->create()));	} }

Development

This package was maintain by these authors.


Consider to support contributte development team. Also thank you for using this package.

About

πŸ’€ [DISCONTINUED] πŸ’° MobilniPlatby.cz for Nette Framework

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

 
 
 

Contributors