{"id":13806176,"url":"https://github.com/vinyvicente/phalcon-twig","last_synced_at":"2025-10-19T03:31:29.349Z","repository":{"id":57078208,"uuid":"75418346","full_name":"vinyvicente/phalcon-twig","owner":"vinyvicente","description":"Twig Template Engine to Phalcon PHP","archived":false,"fork":false,"pushed_at":"2023-08-23T18:00:28.000Z","size":19,"stargazers_count":4,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T08:11:14.429Z","etag":null,"topics":["miscellaneous","phalcon-template","phalcon-twig","template-engine","twig"],"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/vinyvicente.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":"2016-12-02T17:54:06.000Z","updated_at":"2023-08-23T17:59:25.000Z","dependencies_parsed_at":"2024-01-03T02:24:43.428Z","dependency_job_id":"d3ee6b62-edce-4ace-b186-af277dd723b7","html_url":"https://github.com/vinyvicente/phalcon-twig","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.16666666666666663","last_synced_commit":"8ab62a6203c8c306b13febceb308d080d167431c"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinyvicente%2Fphalcon-twig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinyvicente%2Fphalcon-twig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinyvicente%2Fphalcon-twig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinyvicente%2Fphalcon-twig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vinyvicente","download_url":"https://codeload.github.com/vinyvicente/phalcon-twig/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237062261,"owners_count":19249022,"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":["miscellaneous","phalcon-template","phalcon-twig","template-engine","twig"],"created_at":"2024-08-04T01:01:08.543Z","updated_at":"2025-10-19T03:31:24.075Z","avatar_url":"https://github.com/vinyvicente.png","language":"PHP","funding_links":[],"categories":["Templating"],"sub_categories":[],"readme":"# phalcon-twig\n\n[![Latest Stable Version](https://poser.pugx.org/vinyvicente/phalcon-twig/v/stable)](https://packagist.org/packages/vinyvicente/phalcon-twig)\n[![Total Downloads](https://poser.pugx.org/vinyvicente/phalcon-twig/downloads)](https://packagist.org/packages/vinyvicente/phalcon-twig)\n[![License](https://poser.pugx.org/vinyvicente/phalcon-twig/license)](https://packagist.org/packages/vinyvicente/phalcon-twig)\n[![Monthly Downloads](https://poser.pugx.org/vinyvicente/phalcon-twig/d/monthly)](https://packagist.org/packages/vinyvicente/phalcon-twig)\n[![Daily Downloads](https://poser.pugx.org/vinyvicente/phalcon-twig/d/daily)](https://packagist.org/packages/vinyvicente/phalcon-twig)\n[![composer.lock](https://poser.pugx.org/vinyvicente/phalcon-twig/composerlock)](https://packagist.org/packages/vinyvicente/phalcon-twig)\n\n## Requirements\n\n    PHP \u003e= 5.6\n    Phalcon \u003e= 3.x\n\n## Install\n\n```\ncomposer require vinyvicente/phalcon-twig\n```\n\n### Configuration\n\n* Register in your DI configuration view, registering new view engine.\n\n```php\n\n    $di = new \\Phalcon\\Di\\FactoryDefault();\n\n    $di['view'] = function () {\n        $view = new View();\n        $view-\u003esetViewsDir('app/views/');\n        $view-\u003eregisterEngines([\n            View\\Engine\\Twig::DEFAULT_EXTENSION =\u003e function ($view, $di) {\n                return new View\\Engine\\Twig($view, $di, [\n                    'cache' =\u003e __DIR__ . '/app/cache/',\n                ]);\n            }\n        ]);\n\n        return $view;\n    };\n\n```\n\n### Important\n\n    See Twig Docs: http://twig.sensiolabs.org/documentation\n\nEnjoy!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinyvicente%2Fphalcon-twig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinyvicente%2Fphalcon-twig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinyvicente%2Fphalcon-twig/lists"}