{"id":15029916,"url":"https://github.com/corviz/crow","last_synced_at":"2025-06-17T12:36:18.765Z","repository":{"id":48410651,"uuid":"493659106","full_name":"Corviz/crow","owner":"Corviz","description":"Yet another template engine for PHP","archived":false,"fork":false,"pushed_at":"2025-01-14T04:11:49.000Z","size":86,"stargazers_count":6,"open_issues_count":5,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-15T08:28:09.866Z","etag":null,"topics":["php","php8","template-engine"],"latest_commit_sha":null,"homepage":"https://corviz.github.io/crow/","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/Corviz.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":"2022-05-18T12:44:34.000Z","updated_at":"2025-01-14T04:07:48.000Z","dependencies_parsed_at":"2025-02-15T21:32:16.647Z","dependency_job_id":"0075f00f-5213-4f79-bbc8-96b4509ae4e6","html_url":"https://github.com/Corviz/crow","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/Corviz/crow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Corviz%2Fcrow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Corviz%2Fcrow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Corviz%2Fcrow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Corviz%2Fcrow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Corviz","download_url":"https://codeload.github.com/Corviz/crow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Corviz%2Fcrow/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260359618,"owners_count":22997327,"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":["php","php8","template-engine"],"created_at":"2024-09-24T20:11:59.218Z","updated_at":"2025-06-17T12:36:13.736Z","avatar_url":"https://github.com/Corviz.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crow template engine\n\nYet another php template engine\n\nFeatures:\n\n* Easily extensible - You can create new methods to satisfy your needs\n* Wide spread syntax (similar to Blade)\n* Framework agnostic - You can use it in any project\n* Easy to configure - It takes literally 2 commands to make a basic configuration (1 if you won't use components/custom \ntags)\n* MIT license. Free for commercial and non-commercial use\n\n## Installation with composer\n\n```\ncomposer require corviz/crow\n```\n\n## Quickstart\n\nIn your main script:\n```php\nuse Corviz\\Crow\\Crow;\n\nCrow::setDefaultPath('/path/to/templates/folder');\nCrow::setComponentsNamespace('MyComponents'); //Required only if you will use components/custom tags\n\nCrow::render('index');\n```\n\nIn /path/to/templates/folder/index.crow.php:\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n    \u003chead\u003e\n        \u003ctitle\u003eIndex\u003c/title\u003e\n    \u003c/head\u003e\n    \u003cbody\u003e\n        {{ 'Hello world' }}\n    \u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Basic loop example\n\nIn your main script:\n```php \n$todoList = ['Work', 'Clean house', 'Relax'];\n\nCrow::render('template', ['todoList' =\u003e $todoList]);\n```\n\nTemplate file\n\n```html\n\u003ch1\u003eTodo:\u003c/h1\u003e\n\u003cul\u003e\n    @foreach($todoList as $task)\n        \u003cli\u003e{{ $task }}\u003c/li\u003e\n    @endforeach\n\u003c/ul\u003e\n```\n\n## Credits\n\n- Carlos A. B. Carucce - Development ([Github Profile](https://github.com/carloscarucce))\n- Wiktor Stribiżew - Special thanks for the support with most regexes used in this project ([Stackoverflow](https://stackoverflow.com/users/3832970/wiktor-stribi%c5%bcew) / [YT Channel](https://www.youtube.com/channel/UCFeq5T-LNtqpVrn_rcJ9hFw))\n\n## Like it?\n\nVisit https://corviz.github.io/crow/ for documentation/examples\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorviz%2Fcrow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorviz%2Fcrow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorviz%2Fcrow/lists"}