PHP code example of maillotf / ikentoo-bridge-bundle

1. Go to this page and download the library: Download maillotf/ikentoo-bridge-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

maillotf / ikentoo-bridge-bundle example snippets



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

}