PHP code example of unio / posta

1. Go to this page and download the library: Download unio/posta 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/ */

    

unio / posta example snippets



	protected function createComponentBalikovna(): BalikovnaControl
	{
		$control = $this->balikovnaControlFactory->create();
		$control->onSelect[] = function(IShipBox $balikovna) {
			$this->sesna->shipbox[BalikovnaRepository::IDENTITY] = $balikovna->getId();
		};
		return $control;
	}

	public function actionImport() {
	    try {
	      $this->balikovnaRepository->import();
	    } catch(\Exception $e) {
			$this->template->message = "Chyba: " . $e->getMessage();
	    }
	}