2017 © Pedro Peláez
 

yii2-extension yii2-external-links

AutoCorrect external links after rendering html page

image

skeeks/yii2-external-links

AutoCorrect external links after rendering html page

  • Thursday, November 23, 2017
  • by skeeks-semenov
  • Repository
  • 2 Watchers
  • 4 Stars
  • 1,104 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 5 % Grown

The README.md

AutoCorrect external links after rendering html page

Latest Stable Version Total Downloads, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist skeeks/yii2-external-links "*"

or add, (*4)

"skeeks/yii2-external-links": "*"

How to use (simple)

//App config
[
    'bootstrap'    => ['externalLinks'],

    'components'    =>
    [
        //....
        'externalLinks' =>
        [
            'class' => 'skeeks\yii2\externalLinks\ExternalLinksComponent',
        ],
        //....
    ],

    'modules'    =>
    [
        //....
        'externallinks' =>
        [
            'class' => 'skeeks\yii2\externalLinks\ExternalLinksModule',
        ],
        //....
    ]
]

How to use (advanced)

//App config
[
    'bootstrap'    => ['externalLinks'],

    'components'    =>
    [
        //....
        'externalLinks' =>
        [
            'class' => 'skeeks\yii2\externalLinks\ExternalLinksComponent',

            //Additional
            'enabled'                           => true,
            'noReplaceLocalDomain'              => true,
            'backendRoute'                      => '/externallinks/redirect/redirect',
            'backendRouteParam'                 => 'url',
            'enabledB64Encode'                  => true,
            'noReplaceLinksOnDomains'           => [
                'site1.ru',
                'www.site1.ru',
                'site2.ru',
            ],
        ],

        'urlManager' => 
        [
            'rules' => 
            [
                //Rewriting the standard route
                //And add robots.txt  Disallow: /~*
                '~skeeks-redirect'                        => '/externallinks/redirect/redirect',
            ]
        ]
        //....
    ],

    'modules'    =>
    [
        //....
        'externallinks' =>
        [
            'class' => 'skeeks\yii2\externalLinks\ExternalLinksModule',
        ],
        //....
    ]
]

Screenshot

SkeekS CMS admin panel, (*5)


skeeks!
SkeekS CMS (Yii2) — quickly, easily and effectively!
skeeks.com | cms.skeeks.com, (*6)

The Versions

23/11 2017

dev-master

9999999-dev http://skeeks.com/

AutoCorrect external links after rendering html page

  Sources   Download

GPL-3.0+

The Requires

 

by Semenov Alexander

framework app yii sx skeeks auto correct

23/11 2017

1.1.2

1.1.2.0 http://skeeks.com/

AutoCorrect external links after rendering html page

  Sources   Download

GPL-3.0+

The Requires

 

by Semenov Alexander

framework app yii sx skeeks auto correct

23/06 2016

1.1.1

1.1.1.0 http://skeeks.com/

AutoCorrect external links after rendering html page

  Sources   Download

GPL-3.0+

The Requires

 

by Semenov Alexander

framework app yii sx skeeks auto correct

11/02 2016

1.1.0

1.1.0.0 http://skeeks.com/

AutoCorrect external links after rendering html page

  Sources   Download

GPL-3.0+

The Requires

 

by Semenov Alexander

framework app yii sx skeeks auto correct

11/02 2016

1.0.1

1.0.1.0 http://skeeks.com/

AutoCorrect external links after rendering html page

  Sources   Download

GPL-3.0+

The Requires

 

by Semenov Alexander

framework app yii sx skeeks auto correct

10/02 2016

1.0.0

1.0.0.0 http://skeeks.com/

AutoCorrect external links after rendering html page

  Sources   Download

GPL-3.0+

The Requires

 

by Semenov Alexander

framework app yii sx skeeks auto correct