maillotf/ikentoo-bridge-bundle

An ikentoo bundle for Symfony

1.0.0 2020-10-12 14:14 UTC

This package is auto-updated.

Last update: 2024-11-13 00:39:58 UTC


README

Software license Latest stable Packagist PHP Version Support

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));
	}

}