{"id":15296296,"url":"https://github.com/steeinru/php-robots","last_synced_at":"2025-07-27T10:33:19.013Z","repository":{"id":57059355,"uuid":"98556784","full_name":"SteeinRu/php-robots","owner":"SteeinRu","description":"Generator robots.txt","archived":false,"fork":false,"pushed_at":"2017-09-08T19:40:55.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-15T01:21:42.163Z","etag":null,"topics":["laravel-package","php","php7","robots","robots-generator","robots-txt","steein-robots"],"latest_commit_sha":null,"homepage":null,"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/SteeinRu.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":"2017-07-27T16:10:12.000Z","updated_at":"2022-02-12T14:24:10.000Z","dependencies_parsed_at":"2022-08-24T14:53:27.347Z","dependency_job_id":null,"html_url":"https://github.com/SteeinRu/php-robots","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SteeinRu%2Fphp-robots","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SteeinRu%2Fphp-robots/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SteeinRu%2Fphp-robots/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SteeinRu%2Fphp-robots/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SteeinRu","download_url":"https://codeload.github.com/SteeinRu/php-robots/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227799679,"owners_count":17821700,"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":["laravel-package","php","php7","robots","robots-generator","robots-txt","steein-robots"],"created_at":"2024-09-30T18:09:59.739Z","updated_at":"2024-12-02T20:30:10.015Z","avatar_url":"https://github.com/SteeinRu.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Generator robots.txt\nGenerator of the text file \"robots.txt\"\n\n***The robots.txt*** file is a text file located in the root directory of the site, in which special instructions for search robots are written. These instructions may prohibit some sections or pages on the site from being indexed, indicate the correct \"mirroring\" of the domain, recommend the search robot to observe a certain time interval between downloading documents from the server, etc.\n\n## Installation\nFirst, install the package via composer:\n```\ncomposer require steein/robots\n```\nOr add the following to your ```composer.json``` in the require section and then run ```composer``` update to install it.\n\n```json\n{\n    \"require\": {\n        \"steein/robots\": \"1.4\"\n    }\n}\n```\n\n## Usage\n\n### default\n\n```php\nuse Steein\\Robots\\Robots;\nuse Steein\\Robots\\RobotsInterface;\n\nRobots::getInstance()\n    -\u003ehost(\"www.steein.ru\")\n    -\u003euserAgent(\"*\")\n    -\u003eallow(\"one\",\"two\")\n    -\u003edisallow(\"one\",\"two\",\"three\")\n    -\u003eeach(function (RobotsInterface $robots) {\n        $robots-\u003euserAgent(\"Google\")\n            -\u003ecomment(\"Comment Google\")\n            -\u003espacer()\n            -\u003eallow(\"testing\");\n    })-\u003eeach(function (RobotsInterface $robots) {\n        $robots-\u003euserAgent(\"Bind\")\n            -\u003ecomment(\"Comment Bind\")\n            -\u003espacer()\n            -\u003eallow(\"testing\");\n    })-\u003ecreate(); // or render()\n\n```\n\n## Testing\n\n```\n$ phpunit\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteeinru%2Fphp-robots","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteeinru%2Fphp-robots","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteeinru%2Fphp-robots/lists"}