{"id":16272563,"url":"https://github.com/scarydonetskiy/phalcon-http-methods-plugin","last_synced_at":"2025-08-13T02:39:48.847Z","repository":{"id":57076529,"uuid":"164094067","full_name":"ScaryDonetskiy/Phalcon-HTTP-Methods-Plugin","owner":"ScaryDonetskiy","description":"Phalcon plugin for checking access by HTTP Method of request.","archived":false,"fork":false,"pushed_at":"2019-02-24T09:43:09.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T12:27:11.936Z","etag":null,"topics":["http","http-method","mvc","phalcon","phalcon-plugin","php","php7","phpunit-tests","plugin"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ScaryDonetskiy.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":"2019-01-04T10:33:14.000Z","updated_at":"2020-06-18T11:52:16.000Z","dependencies_parsed_at":"2022-08-24T14:55:53.073Z","dependency_job_id":null,"html_url":"https://github.com/ScaryDonetskiy/Phalcon-HTTP-Methods-Plugin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScaryDonetskiy%2FPhalcon-HTTP-Methods-Plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScaryDonetskiy%2FPhalcon-HTTP-Methods-Plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScaryDonetskiy%2FPhalcon-HTTP-Methods-Plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScaryDonetskiy%2FPhalcon-HTTP-Methods-Plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScaryDonetskiy","download_url":"https://codeload.github.com/ScaryDonetskiy/Phalcon-HTTP-Methods-Plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247877034,"owners_count":21011148,"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":["http","http-method","mvc","phalcon","phalcon-plugin","php","php7","phpunit-tests","plugin"],"created_at":"2024-10-10T18:18:14.818Z","updated_at":"2025-04-08T15:49:41.665Z","avatar_url":"https://github.com/ScaryDonetskiy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTP Methods Plugin for Phalcon PHP #\n\n![Packagist](https://img.shields.io/packagist/l/vados/phalcon-http-methods-plugin.svg)\n![PHP from Packagist](https://img.shields.io/packagist/php-v/vados/phalcon-http-methods-plugin.svg)\n![Packagist](https://img.shields.io/packagist/dt/vados/phalcon-http-methods-plugin.svg)\n![GitHub Issues](https://img.shields.io/github/issues-raw/ScaryDonetskiy/Phalcon-HTTP-Methods-Plugin.svg)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/ScaryDonetskiy/Phalcon-HTTP-Methods-Plugin/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/ScaryDonetskiy/Phalcon-HTTP-Methods-Plugin/?branch=master)\n[![Travis CI Status](https://travis-ci.org/ScaryDonetskiy/Phalcon-HTTP-Methods-Plugin.svg?branch=master)](https://travis-ci.org/ScaryDonetskiy/Phalcon-HTTP-Methods-Plugin)\n\nPhalcon plugin for checking access by HTTP Method of request. \n\nYou can select one or more HTTP methods for action availability from this: GET, POST, PUT, DELETE.\n\nWorks with PHP 7.1+\n\n### Usage ###\n\nPlugin require availability 'Annotations' and 'Request' components in application DI container.\n```php\n$dispatcher = new \\Phalcon\\Mvc\\Dispatcher();\n$eventManager = new \\Phalcon\\Events\\Manager();\n$eventManager-\u003eattach('dispatch:beforeExecuteRoute', new \\Vados\\PhalconPlugins\\HTTPMethodsPlugin());\n$dispatcher-\u003esetEventsManager($eventManager);\n```\n\nAnd just take annotations to controllers actions\n```php\nclass FooController extends \\Phalcon\\Mvc\\Controller\n{\n    /**\n     * @Method(GET, POST, PUT, DELETE)\n     */\n    public function barAction()\n    {\n        return 'foobar';\n    }\n}\n``` \n\n### Installation ###\n\nUse composer for installation\n```bash\ncomposer require vados/phalcon-http-methods-plugin\n```\n\n### Contribution guidelines ###\n\n* Writing tests\n* Code review\n* Guidelines accord\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscarydonetskiy%2Fphalcon-http-methods-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscarydonetskiy%2Fphalcon-http-methods-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscarydonetskiy%2Fphalcon-http-methods-plugin/lists"}