PHP code example of ajtarragona / tsystems-client

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

    

ajtarragona / tsystems-client example snippets


use Ajtarragona\Tsystems\Services\TsystemsTercersService;

...
public function test(TsystemsTercersService $tercers){
	$tercer=$tercers->getPersonByIdNumber(123456);
	...
}

use TsystemsTercers;
...
public function test(){
	$tercer=TsystemsTercers::getPersonByIdNumber(123456);
	...
}

...
public function test(){
	$tercer=ts_tercers()->getPersonByIdNumber(123456);
	...
}
bash
php artisan vendor:publish --tag=ajtarragona-tsystems-config