2017 © Pedro Peláez
 

library robots

Robots generator component

image

nepttune/robots

Robots generator component

  • Tuesday, April 24, 2018
  • by peldax
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 17 % Grown

The README.md

Robots

:wrench: Robots generator component, (*1)

Introduction

This componenet automaticaly generates robots from parameters in configuration., (*2)

Dependencies

How to use

  • Register \Nepttune\Component\IRobotsFactory as service in cofiguration file, inject it into presenter, write createComponent method and use macro {control} in template file.
    • Just as any other component.
    • You need to pass robots configuration to factory service.
    • Content type is automaticaly set to text/plain.
  • Modify parameters to accomplish your needs.

Example configuration

services:
    robotsFactory:
        implement: Nepttune\Component\IRobotsFactory
        arguments:
          - '%robots%'
parameters:
    robots:
        all:
            name: '*'
            disallow:
        google:
            name 'GoogleBot'
            disallow:
              - '/example'
              - '/example2'

Example presenter

class ExamplePresenter implements IPresenter
{
    /** @var  \Nepttune\Component\IRobotsFactory */
    protected $iRobotsFactory;

    public function __construct(\Nepttune\Component\IRobotsFactory $IRobotsFactory)
    {
        $this->iRobotsFactory = $IRobotsFactory;
    }

    protected function createComponentRobots() : \Nepttune\Component\Robots
    {
        return $this->iRobotsFactory->create();
    }
}

The Versions

24/04 2018

dev-master

9999999-dev https://www.peldax.com

Robots generator component

  Sources   Download

MIT

The Requires

 

18/04 2018

v1.1.1

1.1.1.0 https://www.peldax.com

Robots generator component

  Sources   Download

MIT

The Requires

 

18/04 2018

v1.1

1.1.0.0 https://www.peldax.com

Robots generator component

  Sources   Download

MIT

The Requires

 

18/04 2018

v1.0.2

1.0.2.0 https://www.peldax.com

Robots generator component

  Sources   Download

MIT

The Requires

 

17/04 2018

v1.0.1

1.0.1.0 https://www.peldax.com

Robots generator component

  Sources   Download

MIT

The Requires

 

17/04 2018

v1.0

1.0.0.0 https://www.peldax.com

Robots generator component

  Sources   Download

MIT

The Requires