{"id":21719364,"url":"https://github.com/operfildoluiz/leoch","last_synced_at":"2025-04-12T20:34:54.300Z","repository":{"id":62516975,"uuid":"110576082","full_name":"operfildoluiz/Leoch","owner":"operfildoluiz","description":"🏃· Leoch is a lightweight PHP server-side template rendering engine","archived":false,"fork":false,"pushed_at":"2018-04-30T19:06:03.000Z","size":16,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T14:51:14.472Z","etag":null,"topics":["package","php","rendering","template-engine","template-rendering"],"latest_commit_sha":null,"homepage":"https://lhcgoncalves.github.io/leoch/","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/operfildoluiz.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":"2017-11-13T16:59:28.000Z","updated_at":"2023-07-27T09:50:31.000Z","dependencies_parsed_at":"2022-11-02T16:00:52.814Z","dependency_job_id":null,"html_url":"https://github.com/operfildoluiz/Leoch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operfildoluiz%2FLeoch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operfildoluiz%2FLeoch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operfildoluiz%2FLeoch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operfildoluiz%2FLeoch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/operfildoluiz","download_url":"https://codeload.github.com/operfildoluiz/Leoch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631152,"owners_count":21136548,"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":["package","php","rendering","template-engine","template-rendering"],"created_at":"2024-11-26T01:36:54.915Z","updated_at":"2025-04-12T20:34:54.280Z","avatar_url":"https://github.com/operfildoluiz.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Sele_o_001.png](https://s17.postimg.cc/kjbvqrcm7/Sele_o_001.png)](https://postimg.org/image/ugmwjtk7v/)\n\nLeoch is a simple PHP server-side template rendering engine.\n\n## Demo\n\nSee `demo/index.php` for server-side reference and `demo/templates/index.leoch.php` for Leoch syntax reference.\n\n## Basic Syntax\n\nVariables\n\n    {{$var}}\n\nConditional Sentences\n\n    @if[...]\n\n    @elseif[...]\n\n    @else\n\n    @endif\n\nIterators\n\n    @foreach($array in $var)\n\n    I'm a $var\n\n    @endforeach\n\nLoops\n\n    @while[$i \u003c 10]\n\n    $i++\n\n    @endwhile\n\nInside code blocks, there's no need to declare the variable under brackets.\n\n## Rendering\n\n    use Leoch\\App\\Processor\\TemplateProcessor;\n\n    $template = new Template('demo');\n    $template-\u003esetSrc('example')\n             -\u003efill([\n                    'somevar' =\u003e 'Some Var',\n                    'level' =\u003e 'basic',\n                    'somenumber' =\u003e 2,\n                    'somearray' =\u003e array('Red', 'Blue'),\n                    'somearray2' =\u003e array('Vermelho', 'Azul'),\n                ])\n             -\u003erender();\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foperfildoluiz%2Fleoch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foperfildoluiz%2Fleoch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foperfildoluiz%2Fleoch/lists"}