{"id":19325440,"url":"https://github.com/krypt0nn/csrf","last_synced_at":"2025-02-24T06:16:59.141Z","repository":{"id":144045194,"uuid":"276039749","full_name":"krypt0nn/csrf","owner":"krypt0nn","description":"Небольшая функция для создания и верификации CSRF токенов для PHP 5 и выше","archived":false,"fork":false,"pushed_at":"2020-10-30T13:26:28.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-06T06:43:36.870Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krypt0nn.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-30T08:19:38.000Z","updated_at":"2020-10-30T13:25:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"fd3966bd-5550-4f2c-b17c-c9e26644e0d8","html_url":"https://github.com/krypt0nn/csrf","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/krypt0nn%2Fcsrf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krypt0nn%2Fcsrf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krypt0nn%2Fcsrf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krypt0nn%2Fcsrf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krypt0nn","download_url":"https://codeload.github.com/krypt0nn/csrf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240427326,"owners_count":19799471,"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":[],"created_at":"2024-11-10T02:10:03.487Z","updated_at":"2025-02-24T06:16:59.109Z","avatar_url":"https://github.com/krypt0nn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e🚀 CSRF\u003c/h1\u003e\n\n**CSRF** - небольшая функция для реализации [CSRF токенов](https://ru.wikipedia.org/wiki/Межсайтовая_подделка_запроса)\n\n## Установка\n```cmd\nphp qero.phar i KRypt0nn/csrf\n```\n\n```php\n\u003c?php\n\nrequire 'qero-packages/autoload.php';\n```\n\n[Что такое Qero?](https://github.com/KRypt0nn/Qero)\n\n\u003cp align=\"center\"\u003eили\u003c/p\u003e\n\nСкачайте файл `csrf.php` и подключите его к проекту с помощью *require*\n\n```php\n\u003c?php\n\nrequire 'csrf.php';\n```\n\n## Пример работы\n\n```php\n\u003c?php\n\nrequire 'qero-packages/autoload.php';\n\nif (isset ($_POST['csrf']))\n    echo 'csrf token status: '. (\n        csrf($_POST['csrf']) ? 'working' : 'not working');\n\n?\u003e\n\n\u003cform method=\"post\"\u003e\n    \u003cinput type=\"hidden\" name=\"csrf\" value=\"\u003c?= csrf() ?\u003e\"\u003e\n\n    \u003cbutton type=\"submit\"\u003e\n\u003c/form\u003e\n```\n\nАвтор: [Подвирный Никита](https://vk.com/technomindlp). Специально для [Enfesto Studio Group](https://vk.com/hphp_convertation)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrypt0nn%2Fcsrf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrypt0nn%2Fcsrf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrypt0nn%2Fcsrf/lists"}