Maybe i was not clear, i use situation then i put it in a rStyle. I make some example:
<?php
require_once '../../../Classes/Phpdocx/Create/CreateDocx.php';
$docx = new Phpdocx\Create\CreateDocx();
        $array = [];
        $array['font'] = null;
        $array['fontSize'] = null;
        $array['bold'] = false;
        $array['italic'] = false;
        $array['strike'] = true;
        $array['color'] = null;
        $array['underline'] = null;
$style = array(
                        'underline' => 'none', 'fontSize' => $array['fontSize'], 'font' => $array['font'], 'color' => $array['color'],
                        'bold' => $array['bold'], 'underline' => $array['underline'], 'italic' => $array['italic'], 'strikeThrough' => ($array['strike'] == true) ? true : null,
                    );
                    // print_r($style);
                    $docx->createCharacterStyle('leaderCrmStyle1', $style);
$docx->addLink('Link to Google', array('url'=> 'http://www.google.es',
                        'rStyle' => 'leaderCrmStyle1' ));
        $array = [];
        $array['font'] = null;
        $array['fontSize'] = null;
        $array['bold'] = false;
        $array['italic'] = false;
        $array['strike'] = false;
        $array['color'] = null;
        $array['underline'] = null;
$style = array(
                        'underline' => 'none', 'fontSize' => $array['fontSize'], 'font' => $array['font'], 'color' => $array['color'],
                        'bold' => $array['bold'], 'underline' => $array['underline'], 'italic' => $array['italic'], 'strikeThrough' => $array['strike'],
                    );
                    // print_r($style);
                    $docx->createCharacterStyle('leaderCrmStyle2', $style);
$docx->addLink('Link to Google', array('url'=> 'http://www.google.es',
                        'rStyle' => 'leaderCrmStyle2' ));
        $array = [];
        $array['font'] = null;
        $array['fontSize'] = null;
        $array['bold'] = false;
        $array['italic'] = false;
        $array['strike'] = true;
        $array['color'] = null;
        $array['underline'] = null;
$style = array(
                        'underline' => 'none', 'fontSize' => $array['fontSize'], 'font' => $array['font'], 'color' => $array['color'],
                        'bold' => $array['bold'], 'underline' => $array['underline'], 'italic' => $array['italic'], 'strikeThrough' => ($array['strike'] == true) ? true : null,
                    );
                    // print_r($style);
                    $docx->createCharacterStyle('leaderCrmStyle3', $style);
$docx->addLink('Link to Google', array('url'=> 'http://www.google.es',
                        'rStyle' => 'leaderCrmStyle3' ));
$docx->addText('And now the same link with some additional formatting:');
$linkOptions = array('url'=> 'http://www.google.es',
    'color' => 'B70000',
    'underline' => 'none'
    );
$docx->addLink('Link to Google in red color and not underlined', $linkOptions);
$docx->createDocx('example_addLink_1');
 
                 Log in
                                    Log in
                                 Contact
                                Contact
                             Forum
                                Forum