{"id":13806113,"url":"https://github.com/izica/phalcon-meta-tags","last_synced_at":"2025-08-12T18:06:54.751Z","repository":{"id":56995162,"uuid":"78631299","full_name":"izica/phalcon-meta-tags","owner":"izica","description":"Phalcon PHP Meta tags Service","archived":false,"fork":false,"pushed_at":"2023-04-09T00:59:40.000Z","size":16,"stargazers_count":12,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-16T11:06:26.252Z","etag":null,"topics":["meta-tags","phalcon","phalcon-meta-tags","phalcon-php","phalcon-php-framework","phalconphp","php","php-library","php7","seo","seo-friendly","seo-manager","seo-meta","tags"],"latest_commit_sha":null,"homepage":"","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/izica.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}},"created_at":"2017-01-11T11:10:57.000Z","updated_at":"2023-04-09T00:59:22.000Z","dependencies_parsed_at":"2024-01-03T02:24:43.262Z","dependency_job_id":"88fbdf54-1d23-412b-967a-179ec3b970c9","html_url":"https://github.com/izica/phalcon-meta-tags","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/izica/phalcon-meta-tags","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izica%2Fphalcon-meta-tags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izica%2Fphalcon-meta-tags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izica%2Fphalcon-meta-tags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izica%2Fphalcon-meta-tags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/izica","download_url":"https://codeload.github.com/izica/phalcon-meta-tags/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izica%2Fphalcon-meta-tags/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270109377,"owners_count":24528789,"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-08-12T02:00:09.011Z","response_time":80,"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":["meta-tags","phalcon","phalcon-meta-tags","phalcon-php","phalcon-php-framework","phalconphp","php","php-library","php7","seo","seo-friendly","seo-manager","seo-meta","tags"],"created_at":"2024-08-04T01:01:07.997Z","updated_at":"2025-08-12T18:06:54.707Z","avatar_url":"https://github.com/izica.png","language":"PHP","funding_links":[],"categories":["SEO"],"sub_categories":[],"readme":"# About\nPhalcon meta tags plugin for PhalconPHP.\n\nThis plugin allows you to easily and flexibly customize the meta tags of your view.\n\nIf this plugin helped you, be glad to see your star, thank you.\n\nCheck out new validation package for PhalconPHP\nhttps://github.com/izica/phalcon-validation\n\n* [Install](#Install)\n* [Plugin functions](#Plugin-functions)\n* [Usage](#Usage)\n    * [Register plugin as service](#Register-plugin-as-service)\n    * [Add data to your layout](#Add-data-to-your-layout)\n    * [Use service in controller, view or middleware(anywhere)](#use-service-in-controller-view-or-middlewareanywhere)\n    * [Example of output](#Example-of-output)\n\n# Install\n```bash\n    composer require izica/phalcon-meta-tags\n```\n\n# Plugin functions\n\n```php\n    setTitle($title)\n    getTitle()\n    setByProperty($property, $content)\n    unsetByProperty($properties) //array or single property name\n\n    setByName($name, $content)\n    unsetByName($properties) //array or single name\n\n    setCustom($key, $attributes) //unique key and attributes array\n    unsetCustom($keys) //array or single value\n    getMeta() // return metas string\n```\n\n# Usage:\n## Register plugin as service:\n```php\n    $di = new DI();\n    $di-\u003eset('metatag', function() {\n    \treturn new IzicaMetaTags();\n    });\n```\n\n## Add data to your layout:\n```php\n    \u003c!DOCTYPE html\u003e\n    \u003chtml\u003e\n        \u003chead\u003e\n            \u003c?php echo $this-\u003emetatag-\u003egetTitle();?\u003e\n            \u003c?php echo $this-\u003emetatag-\u003egetMeta();?\u003e\n        \u003c/head\u003e\n        \u003cbody\u003e\n             \u003c?php echo $this-\u003egetContent(); ?\u003e\n        \u003c/body\u003e\n    \u003c/html\u003e\n```\n\n## Use service in controller, view or middleware(anywhere):\n```php\n    use Phalcon\\Mvc\\Controller;\n\n    class IndexController extends Controller\n    {\n        public function indexAction()\n        {\n            $this-\u003emetatag-\u003esetTitle(\"Phalcon MetaTags Service\");\n\n            $this-\u003emetatag-\u003esetCustom(\"charset\", ['charset' =\u003e 'UTF-8']);\n            $this-\u003emetatag-\u003esetCustom(\"http\", ['http-equiv' =\u003e 'content-type', 'content' =\u003e 'text/html; charset=UTF-8']);\n\n            $this-\u003emetatag-\u003esetByName(\"description\", \"phalcon php metatags\");\n\n            $this-\u003emetatag-\u003esetByProperty(\"og:description\", \"When Great Minds Don’t Think Alike\");\n        }\n    }\n```\n\n\n## Example of output:\n```html\n    \u003ctitle\u003ePhalcon MetaTags Service\u003c/title\u003e        \n    \u003cmeta name=\"description\" content=\"phalcon php metatags\"\u003e\n    \u003cmeta property=\"og:description\" content=\"When Great Minds Don’t Think Alike\"\u003e\n    \u003cmeta charset=\"UTF-8\"\u003e\n    \u003cmeta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\"\u003e  \n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizica%2Fphalcon-meta-tags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fizica%2Fphalcon-meta-tags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizica%2Fphalcon-meta-tags/lists"}