2017 © Pedro Peláez
 

library yii2-nox-robots

Yii2 Robots.txt Generator Module

image

nox-it/yii2-nox-robots

Yii2 Robots.txt Generator Module

  • Saturday, May 27, 2017
  • by jsas-development
  • Repository
  • 2 Watchers
  • 1 Stars
  • 114 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 4 % Grown

The README.md

Yii PHP Framework Version 2 / NYX Robots.txt Generator Module

Yii2 Module for automatically generating the robots.txt file., (*1)

Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads composer.lock, (*2)

Installation

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

  • Either run
php composer.phar require --prefer-dist "nyx-solutions/yii2-nyx-robots" "*"

or add, (*4)

"nyx-solutions/yii2-nyx-robots": "*"

to the require section of your application's composer.json file., (*5)

Usage

  • Configure the cache component of your application's configuration file, for example:
'components' => [
    'cache' => [
        'class' => 'yii\caching\FileCache',
    ],
]
  • Add a new module in modules section of your application's configuration file, for example:
'modules' => [
    'robots' => [
        'class' => 'nyx\modules\robots\Module',
        'settings' => [
            'disallowAllRobots' => false,
            'allowAllRobots'    => false,
            'useSitemap'        => true,
            'sitemapFile'       => '/sitemap.xml',
            'robots'            => [],
            'allowRules'        => [
                'all' => [
                    '/uploads'
                ]
            ],
            'disallowRules'     => [
                'all' => [
                    '/assets'
                ]
            ]
        ]
    ]
]
  • Add a new rule for urlManager of your application's configuration file, for example:
'urlManager' => [
    'rules' => [
        ['pattern' => 'robots', 'route' => 'robots/default/index', 'suffix' => '.txt'],
    ]
]

License

yii2-nyx-robots is released under the BSD 3-Clause License. See the bundled LICENSE.md for details., (*6)

Yii2, (*7)

The Versions

27/05 2017

dev-master

9999999-dev

Yii2 Robots.txt Generator Module

  Sources   Download

BSD-3-Clause

The Requires

 

by Jonatas Sas

framework extension php yii2 migration

27/05 2017

1.0.3

1.0.3.0

Yii2 Robots.txt Generator Module

  Sources   Download

BSD-3-Clause

The Requires

 

by Jonatas Sas

framework extension php yii2 migration

14/10 2016

1.0.2

1.0.2.0

Yii2 Robots.txt Generator Module

  Sources   Download

BSD-3-Clause

The Requires

 

by Jonatas Sas

framework extension php yii2 migration

14/10 2016

1.0.1

1.0.1.0

Yii2 Robots.txt Generator Module

  Sources   Download

BSD-3-Clause

The Requires

 

by Jonatas Sas

framework extension php yii2 migration

30/05 2016

1.0.0

1.0.0.0

Yii2 Robots.txt Generator Module

  Sources   Download

Apache-2.0

The Requires

 

by Jonatas Sas

framework extension php yii2 migration

30/05 2016

0.1.0

0.1.0.0

Yii2 Robots.txt Generator Module

  Sources   Download

Apache-2.0

The Requires

 

by Jonatas Sas

framework extension php yii2 migration