{"id":21984325,"url":"https://github.com/amireshoon/luna","last_synced_at":"2026-05-04T14:33:40.672Z","repository":{"id":56947172,"uuid":"383450926","full_name":"amireshoon/Luna","owner":"amireshoon","description":"Luna is a simple very light class to render HTML pages or views  or any files in PHP","archived":false,"fork":false,"pushed_at":"2021-07-21T08:30:49.000Z","size":24,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T05:11:20.424Z","etag":null,"topics":["html-renderer","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amireshoon.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}},"created_at":"2021-07-06T11:52:37.000Z","updated_at":"2024-06-16T21:11:51.000Z","dependencies_parsed_at":"2022-08-21T03:10:26.019Z","dependency_job_id":null,"html_url":"https://github.com/amireshoon/Luna","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amireshoon%2FLuna","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amireshoon%2FLuna/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amireshoon%2FLuna/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amireshoon%2FLuna/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amireshoon","download_url":"https://codeload.github.com/amireshoon/Luna/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245044493,"owners_count":20551898,"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":["html-renderer","php"],"created_at":"2024-11-29T18:08:33.560Z","updated_at":"2026-05-04T14:33:40.614Z","avatar_url":"https://github.com/amireshoon.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Luna\nLuna is a simple very light class to render HTML pages or views in PHP\n\n# Instalation\nYou can install via composer or direclty copy the class or clone repo.\n```bash\ncomposer require amireshoon/luna\n```\n\n## Content format\nYou can render HTML pages or view or any context of any kind of file. You just have to include your keyword like this:\n```\nThis is my {message} for you dear {name}.\n```\nor in html format your content should be like this:\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003ctitle\u003e{title}\u003c/title\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n\n    \u003ch1\u003eThis is my {message} for you dear \u003ccode\u003e{name}\u003c/code\u003e\u003c/h1\u003e\n\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Usage\nIt's simple just give luna the file and variables, That's it.\n\nYou can get rendered output by two methods, You can directly print on-screen, or luna will be return rendered content to you.\n\n`render()` function takes one argument that is output type. By setting it true you will get renderer out put and you can use it however you want to, And if you set that false rendered content will be direclty print on screen. Anyways it's optional default is true.\n```php\n$luna-\u003epage( __DIR__ . '/mypage.html')\n     -\u003ewith([\n        'title'   =\u003e 'My very first page',\n        'message' =\u003e 'Hello world',\n        'name'    =\u003e 'Gophy',\n     ])\n     -\u003erender(false);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famireshoon%2Fluna","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famireshoon%2Fluna","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famireshoon%2Fluna/lists"}