{"id":15282126,"url":"https://github.com/infinityloop-dev/security","last_synced_at":"2025-10-08T00:00:20.988Z","repository":{"id":57025178,"uuid":"152098216","full_name":"infinityloop-dev/security","owner":"infinityloop-dev","description":":wrench: Security.txt generator component for Nette framework.","archived":false,"fork":false,"pushed_at":"2020-05-12T20:46:18.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-08T19:13:12.071Z","etag":null,"topics":["component","nette","php","security-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-10-08T14:57:20.000Z","updated_at":"2020-06-05T12:08:10.000Z","dependencies_parsed_at":"2022-08-23T14:20:59.122Z","dependency_job_id":null,"html_url":"https://github.com/infinityloop-dev/security","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/infinityloop-dev/security","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinityloop-dev%2Fsecurity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinityloop-dev%2Fsecurity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinityloop-dev%2Fsecurity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinityloop-dev%2Fsecurity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infinityloop-dev","download_url":"https://codeload.github.com/infinityloop-dev/security/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinityloop-dev%2Fsecurity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278866931,"owners_count":26059671,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","security-txt"],"created_at":"2024-09-30T14:18:58.726Z","updated_at":"2025-10-08T00:00:20.947Z","avatar_url":"https://github.com/infinityloop-dev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Security\n:wrench: Security generator component\n\n## Introduction\n\nThis component automaticaly generates security.txt 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\\ISecurityFactory` 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 security 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    securityFactory:\n        implement: Nepttune\\Component\\ISecurityFactory\n        arguments:\n          - '%security%'\nparameters:\n    security:\n        contact: 'contact@test.com'\n        hiring: 'https://hiring.test.com'\n        acknowledgements: 'https://hall-of-fame.test.com'\n        permission: 'none'\n```\n\n### Example presenter\n\n```\nclass ExamplePresenter implements IPresenter\n{\n    /** @var  \\Nepttune\\Component\\ISecurityFactory */\n    protected $iSecurityFactory;\n    \n    public function __construct(\\Nepttune\\Component\\ISecurityFactory $ISecurityFactory)\n    {\n        $this-\u003eiSecurityFactory = $ISecurityFactory;\n    }\n\n    protected function createComponentSecurity() : \\Nepttune\\Component\\Security\n    {\n        return $this-\u003eiSecurityFactory-\u003ecreate();\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinityloop-dev%2Fsecurity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfinityloop-dev%2Fsecurity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinityloop-dev%2Fsecurity/lists"}