{"id":34998023,"url":"https://github.com/codemonster-ru/view","last_synced_at":"2026-01-20T17:01:25.116Z","repository":{"id":316869520,"uuid":"1064605767","full_name":"codemonster-ru/view","owner":"codemonster-ru","description":"View rendering core for PHP applications","archived":false,"fork":false,"pushed_at":"2025-12-27T11:29:09.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-28T18:19:28.664Z","etag":null,"topics":["engine","php","renderer","templating","view"],"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/codemonster-ru.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-26T09:29:41.000Z","updated_at":"2025-12-27T02:26:21.000Z","dependencies_parsed_at":"2025-09-27T09:20:55.048Z","dependency_job_id":"08d17cc8-cda3-44e1-b756-106325dba5ee","html_url":"https://github.com/codemonster-ru/view","commit_stats":null,"previous_names":["codemonster-ru/view"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/codemonster-ru/view","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemonster-ru%2Fview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemonster-ru%2Fview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemonster-ru%2Fview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemonster-ru%2Fview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codemonster-ru","download_url":"https://codeload.github.com/codemonster-ru/view/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemonster-ru%2Fview/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28607624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["engine","php","renderer","templating","view"],"created_at":"2025-12-27T02:53:57.890Z","updated_at":"2026-01-20T17:01:25.111Z","avatar_url":"https://github.com/codemonster-ru.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# codemonster-ru/view\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/codemonster-ru/view.svg?style=flat-square)](https://packagist.org/packages/codemonster-ru/view)\n[![Total Downloads](https://img.shields.io/packagist/dt/codemonster-ru/view.svg?style=flat-square)](https://packagist.org/packages/codemonster-ru/view)\n[![License](https://img.shields.io/packagist/l/codemonster-ru/view.svg?style=flat-square)](https://packagist.org/packages/codemonster-ru/view)\n[![Tests](https://github.com/codemonster-ru/view/actions/workflows/tests.yml/badge.svg)](https://github.com/codemonster-ru/view/actions/workflows/tests.yml)\n\nA core for rendering views in PHP applications.\n\nThe package itself doesn't contain any engines; they are included in separate packages:\n\n-   [`codemonster-ru/view-php`](https://github.com/codemonster-ru/view-php) - PHP templates\n-   [`codemonster-ru/view-ssr`](https://github.com/codemonster-ru/view-ssr) - SSR for Vue/React\n-   (future) Twig, Blade, and others\n\n## Installation\n\n```bash\ncomposer require codemonster-ru/view\n```\n\n## Usage\n\n```php\nuse Codemonster\\View\\View;\nuse Codemonster\\View\\Locator\\DefaultLocator;\nuse Codemonster\\View\\Engines\\PhpEngine; // package: codemonster-ru/view-php\n\n$locator = new DefaultLocator([__DIR__ . '/resources/views']); // can be an array of paths\n$engine  = new PhpEngine($locator, 'php'); // default extension: php\n\n$view = new View(['php' =\u003e $engine], 'php');\n\n// Render template\necho $view-\u003erender('emails.welcome', ['user' =\u003e 'Vasya']);\n// Looks for: resources/views/emails/welcome.php\n\n// Access the locator of the default engine (added in v2.2.0)\n$defaultLocator = $view-\u003egetLocator();\n$defaultLocator-\u003eaddPath(__DIR__ . '/vendor/package/views');\n\n// Register namespaced view paths (added in v2.3.0)\n$view-\u003eaddNamespace('admin', __DIR__ . '/resources/views/admin');\necho $view-\u003erender('admin::dashboard', ['user' =\u003e 'Vasya']);\n```\n\n## Features\n\n-   Engine-agnostic core\n-   Support for multiple engines (`PhpEngine`, `SsrEngine`, `TwigEngine`, etc.)\n-   Unified `EngineInterface` interface\n-   Easy integration with frameworks (e.g., Annabel)\n\n## Testing\n\nYou can run tests with the command:\n\n```bash\ncomposer test\n```\n\n## Author\n\n[**Kirill Kolesnikov**](https://github.com/KolesnikovKirill)\n\n## License\n\n[MIT](https://github.com/codemonster-ru/view/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemonster-ru%2Fview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodemonster-ru%2Fview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemonster-ru%2Fview/lists"}