{"id":22300276,"url":"https://github.com/infinityloop-dev/robots","last_synced_at":"2025-07-29T02:31:38.459Z","repository":{"id":57025189,"uuid":"129894736","full_name":"infinityloop-dev/robots","owner":"infinityloop-dev","description":":wrench: Robots.txt generator component for Nette framework.","archived":false,"fork":false,"pushed_at":"2020-05-12T20:46:33.000Z","size":20,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-13T14:17:37.601Z","etag":null,"topics":["component","nette","php","robots-txt"],"latest_commit_sha":null,"homepage":"https://www.infinityloop.dev","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/infinityloop-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-17T11:34:16.000Z","updated_at":"2020-06-05T12:08:28.000Z","dependencies_parsed_at":"2022-08-23T15:00:27.747Z","dependency_job_id":null,"html_url":"https://github.com/infinityloop-dev/robots","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinityloop-dev%2Frobots","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinityloop-dev%2Frobots/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinityloop-dev%2Frobots/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinityloop-dev%2Frobots/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infinityloop-dev","download_url":"https://codeload.github.com/infinityloop-dev/robots/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227971952,"owners_count":17849421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["component","nette","php","robots-txt"],"created_at":"2024-12-03T18:10:15.780Z","updated_at":"2024-12-03T18:10:16.587Z","avatar_url":"https://github.com/infinityloop-dev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Robots\n:wrench: Robots generator component\n\n## Introduction\n\nThis componenet automaticaly generates robots from parameters in configuration.\n\n## Dependencies\n\n- [nette/application](https://github.com/nette/application)\n\n## How to use\n\n- Register `\\Nepttune\\Component\\IRobotsFactory` as service in cofiguration file, inject it into presenter, write `createComponent` method and use macro `{control}` in template file.\n  - Just as any other component.\n  - You need to pass robots configuration to factory service.\n  - Content type is automaticaly set to `text/plain`.\n- Modify parameters to accomplish your needs.\n\n### Example configuration\n\n```\nservices:\n    robotsFactory:\n        implement: Nepttune\\Component\\IRobotsFactory\n        arguments:\n          - '%robots%'\nparameters:\n    robots:\n        all:\n            name: '*'\n            disallow:\n        google:\n            name 'GoogleBot'\n            disallow:\n              - '/example'\n              - '/example2'\n```\n\n### Example presenter\n\n```\nclass ExamplePresenter implements IPresenter\n{\n    /** @var  \\Nepttune\\Component\\IRobotsFactory */\n    protected $iRobotsFactory;\n    \n    public function __construct(\\Nepttune\\Component\\IRobotsFactory $IRobotsFactory)\n    {\n        $this-\u003eiRobotsFactory = $IRobotsFactory;\n    }\n\n    protected function createComponentRobots() : \\Nepttune\\Component\\Robots\n    {\n        return $this-\u003eiRobotsFactory-\u003ecreate();\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinityloop-dev%2Frobots","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfinityloop-dev%2Frobots","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinityloop-dev%2Frobots/lists"}