PHP code example of canaltp / tyr-bundle

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

    

canaltp / tyr-bundle example snippets

 php
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new CanalTP\TyrBundle\CanalTPTyrBundle(),
        );
    }
 php
// Accessing service
$tyrApi = $container->get('canal_tp_tyr.api');
$tyrApi->setEndPointId(1); // If not set in configuration

// Call api
$user = $tyrApi->getUserByEmail('...');