maillotf / ikentoo-bridge-bundle
An ikentoo bundle for Symfony
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.1
- symfony/config: ^3.2|^4.0|^4.1|^5.1
- symfony/dependency-injection: ^3.2|^4.0|^4.1|^5.1
- symfony/http-kernel: ^3.2|^4.0|^4.1|^5.1
Requires (Dev)
- phpunit/phpunit: ^6.5
This package is auto-updated.
Last update: 2024-11-13 00:39:58 UTC
README
Symfony bundle for Ikentoo which is base on token authentication
Required configuration
Modify framework.yaml
ikentoo: authentication: protocol: "http" host: "127.0.0.1" port: "80" token: "TOKEN"
Modify services.yaml
services: MaillotF\Ikentoo\IkentooBridgeBundle\Service\IkentooService: '@ikentoo.service'
##Package instalation with composer
$ composer require maillotf/ikentoo-bridge-bundle
Use in controller:
<?php //... use MaillotF\Ikentoo\IkentooBridgeBundle\Service\IkentooService; class exampleController extends AbstractController { /** * Example * * @Route("example", name="example", methods={"GET"}) * */ public function test(IkentooService $is) { $from = new \DateTime('2020-01-09'); $to = new \DateTime('2020-10-09'); $result = $is->financial->getReceiptTransactionsRange("101163659689986", $from, $to, array('staff'), 1000); $menu = $is->orderAndPayment->loadMenu("101163222689111", 101112359691234, true) return ($this->json($menu)); } }