{"id":36428173,"url":"https://github.com/divengine/div","last_synced_at":"2026-01-11T18:13:32.113Z","repository":{"id":56969616,"uuid":"48872154","full_name":"divengine/div","owner":"divengine","description":"A powerful PHP template engine optimized for dynamic code generation and model-driven architecture. Process templates recursively, customize syntax through unique dialects, and seamlessly integrate with various data formats and programming environments.","archived":false,"fork":false,"pushed_at":"2025-07-16T00:21:22.000Z","size":730,"stargazers_count":27,"open_issues_count":8,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T12:29:52.068Z","etag":null,"topics":["code-generation","custom-language","model-driven-development","model-transformations","php","template-engine","template-language"],"latest_commit_sha":null,"homepage":"https://divengine.org","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/divengine.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,"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":"2016-01-01T07:23:03.000Z","updated_at":"2025-09-02T16:13:49.000Z","dependencies_parsed_at":"2024-01-27T02:29:04.336Z","dependency_job_id":"3a1043d5-8159-436c-9e66-a5c82068f7c4","html_url":"https://github.com/divengine/div","commit_stats":{"total_commits":84,"total_committers":5,"mean_commits":16.8,"dds":0.2857142857142857,"last_synced_commit":"8b195b4271d54a1265163e33cfc504f9dc177873"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/divengine/div","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divengine%2Fdiv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divengine%2Fdiv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divengine%2Fdiv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divengine%2Fdiv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/divengine","download_url":"https://codeload.github.com/divengine/div/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divengine%2Fdiv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28317696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"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":["code-generation","custom-language","model-driven-development","model-transformations","php","template-engine","template-language"],"created_at":"2026-01-11T18:13:31.385Z","updated_at":"2026-01-11T18:13:32.107Z","avatar_url":"https://github.com/divengine.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Div PHP Template Engine\n\n[![Latest Stable Version](https://poser.pugx.org/divengine/div/v)](https://packagist.org/packages/divengine/div)\n[![Total Downloads](https://poser.pugx.org/divengine/div/downloads)](https://packagist.org/packages/divengine/div)\n[![Latest Unstable Version](https://poser.pugx.org/divengine/div/v/unstable)](https://packagist.org/packages/divengine/div)\n[![License](https://poser.pugx.org/divengine/div/license)](https://packagist.org/packages/divengine/div)\n[![PHP Version Require](https://poser.pugx.org/divengine/div/require/php)](https://packagist.org/packages/divengine/div)\n\n**div** is a [template engine](https://en.wikipedia.org/wiki/Template_processor) and [code generator](https://en.wikipedia.org/wiki/Code_generation_%28compiler%29) written in [PHP](http://php.net/) and developed since 2011. It optimizes collaboration between developers and designers through generative programming, model-driven architecture, and meta-programming. \n\nThis engine facilitates separation of concerns and allows deep customization by creating tailored template [dialects](https://dialector.divengine.org) to fit specific project needs. Dialects can adapt syntax and behavior to match different frameworks or coding conventions.\n\nA distinctive feature of **div** is its ability to **recursively process templates until all code is resolved**, effectively preventing infinite loops and enabling complex, multi-step transformations. This provides exceptional flexibility to dynamically generate content or code.\n\n**div** is the cornerstone of [Divengine Software Solutions](https://divengine.com) and follows the philosophy *\"build more with less\"* and *\"divide the problem, not the people.\"* Its code generation relies on clear rules: the model describes what must be done, the templates define the desired output, and the engine acts as a black box executor.\n\nBasic operations:\n- **Compile**: Combine a template with models and save the result.\n- **Transform**: Convert one model to another, reusing compile.\n- **Compose**: Integrate different results using the engine and other tools.\n\nWith **div**, teams can:\n- Avoid repetitive tasks.\n- Scale projects based on models.\n- Migrate to different technologies.\n- Expand applications to new platforms and devices.\n\nIt improves performance and empowers non-technical collaborators to contribute to development.\n\n## Install\n\n```bash\ncomposer require divengine/div\n```\n## Documentation\n\nFor complete guides, usage examples, and advanced topics, please visit the [project Wiki](../../wiki).\n\nIf you find something missing or have improvements, feel free to contribute directly to the Wiki!\n\n---\n\nPowered by [Divengine Software Solutions](https://divengine.com)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivengine%2Fdiv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivengine%2Fdiv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivengine%2Fdiv/lists"}