{"id":33981335,"url":"https://github.com/flextype-components/view","last_synced_at":"2026-06-03T19:31:11.293Z","repository":{"id":62505536,"uuid":"130919647","full_name":"flextype-components/view","owner":"flextype-components","description":"View Component provides basic methods for displaying PHP views.","archived":false,"fork":false,"pushed_at":"2018-04-30T13:44:57.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-18T05:27:47.426Z","etag":null,"topics":["component","flextype","flextype-component","php","view"],"latest_commit_sha":null,"homepage":"http://components.flextype.org","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/flextype-components.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}},"created_at":"2018-04-24T22:15:38.000Z","updated_at":"2018-04-30T13:44:31.000Z","dependencies_parsed_at":"2022-11-02T12:45:30.693Z","dependency_job_id":null,"html_url":"https://github.com/flextype-components/view","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/flextype-components/view","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flextype-components%2Fview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flextype-components%2Fview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flextype-components%2Fview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flextype-components%2Fview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flextype-components","download_url":"https://codeload.github.com/flextype-components/view/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flextype-components%2Fview/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27699642,"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-12-13T02:00:09.769Z","response_time":147,"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":["component","flextype","flextype-component","php","view"],"created_at":"2025-12-13T03:39:38.078Z","updated_at":"2025-12-13T03:39:38.594Z","avatar_url":"https://github.com/flextype-components.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# View Component\n![version](https://img.shields.io/badge/version-1.1.1-brightgreen.svg?style=flat-square \"Version\")\n[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/flextype-components/view/blob/master/LICENSE)\n\nView Component provides basic methods for displaying PHP views.\n\n### Installation\n\n```\ncomposer require flextype-components/View\n```\n\n### Usage\n\n```php\nuse Flextype\\Component\\View\\View;\n```\n\nCreate a new view object and render it.\n```php\n// Create new view object\n$view = new View('blog/views/backend/index');\n\n// Assign some new variables\n$view-\u003eassign('msg', 'Some message...');\n\n// Get view\n$output = $view-\u003erender();\n\n// Display view\necho $output;\n```\n\nView factory  \nCreate new view object, assign some variables\nand displays the rendered view in the browser.\n```php\nView::factory('blog/views/backend/index')\n     -\u003eassign('msg', 'Some message...')\n     -\u003edisplay();\n```\n\nInclude the view file and extracts the view variables before returning the generated output.\n```php\n// Get view\n$output = $view-\u003erender();\n\n// Display output\necho $output;\n```\n\nDisplays the rendered view in the browser.\n```php\n$view-\u003edisplay();\n```\n\n## License\nSee [LICENSE](https://github.com/flextype-components/view/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflextype-components%2Fview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflextype-components%2Fview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflextype-components%2Fview/lists"}