Skip to content

Symfony bundle for Ikentoo which is base on token authentication.

License

Notifications You must be signed in to change notification settings

maillotf/ikentoo-bridge-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ikentoo-bridge-bundle

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

}

About

Symfony bundle for Ikentoo which is base on token authentication.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages