{"id":19458839,"url":"https://github.com/leafsphp/veins","last_synced_at":"2025-04-25T06:30:34.837Z","repository":{"id":57013265,"uuid":"217098553","full_name":"leafsphp/veins","owner":"leafsphp","description":"Templating engine for Leaf PHP framework","archived":false,"fork":false,"pushed_at":"2023-04-28T07:56:39.000Z","size":98,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"next","last_synced_at":"2025-04-21T22:22:42.913Z","etag":null,"topics":["leaf","leaf-veins","leafphp","php-template-engine","template-engine"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leafsphp.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":null,"code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"open_collective":"leaf","github":"leafsphp"}},"created_at":"2019-10-23T16:03:04.000Z","updated_at":"2024-01-05T15:05:59.000Z","dependencies_parsed_at":"2023-09-29T23:17:21.157Z","dependency_job_id":null,"html_url":"https://github.com/leafsphp/veins","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":0.04347826086956519,"last_synced_commit":"70ca602384f46565d7e5f1450484abac03d250e9"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafsphp%2Fveins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafsphp%2Fveins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafsphp%2Fveins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafsphp%2Fveins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leafsphp","download_url":"https://codeload.github.com/leafsphp/veins/tar.gz/refs/heads/next","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250766975,"owners_count":21483898,"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":["leaf","leaf-veins","leafphp","php-template-engine","template-engine"],"created_at":"2024-11-10T17:28:41.509Z","updated_at":"2025-04-25T06:30:34.821Z","avatar_url":"https://github.com/leafsphp.png","language":"PHP","readme":"# Leaf Veins\n\nVeins is a simple, lightweight, and fast templating engine for PHP. It is designed to be easy to use and easy to extend.\n\n## Installation\n\nYou can install Veins using the Leaf CLI:\n\n```bash\nleaf install veins\n```\n\nOr with composer:\n\n```bash\ncomposer require leafs/veins\n```\n\n## Usage\n\n```php\n\u003c?php\n\nrequire __DIR__ . '/vendor/autoload.php';\n\nuse Leaf\\Veins;\n\n$veins = new Veins();\n$veins-\u003econfigure([\n    'templateDir' =\u003e __DIR__ . '/views/',\n    'cacheDir' =\u003e __DIR__ . '/cache/',\n]);\n$veins-\u003erender('hello', ['name' =\u003e 'John']);\n```\n\n```html\n\u003c!-- views/hello.php --\u003e\n\u003ch1\u003eHello, {$name}!\u003c/h1\u003e\n```\n\n## Configuration\n\nYou can configure Veins by passing an array to the `configure` method:\n\n```php\n$veins-\u003econfigure([\n    'checksum' =\u003e [],\n    'charset' =\u003e 'UTF-8',\n    'debug' =\u003e false,\n    'templateDir' =\u003e 'views/',\n    'cacheDir' =\u003e 'cache/',\n    'baseUrl' =\u003e '',\n    'phpEnabled' =\u003e false,\n    'autoEscape' =\u003e true,\n    'sandbox' =\u003e true,\n    'removeComments' =\u003e false,\n    'customTags' =\u003e [],\n]);\n```\n\nFind the full documentation at [leafphp.dev/modules/views/veins](https://leafphp.dev/modules/views/veins/).\n","funding_links":["https://opencollective.com/leaf","https://github.com/sponsors/leafsphp"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafsphp%2Fveins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleafsphp%2Fveins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafsphp%2Fveins/lists"}