{"id":13793124,"url":"https://github.com/box/brainy","last_synced_at":"2025-07-20T05:32:54.326Z","repository":{"id":21084891,"uuid":"24384744","full_name":"box/brainy","owner":"box","description":"A faster, safer templating library for PHP","archived":false,"fork":false,"pushed_at":"2022-08-23T02:16:08.000Z","size":4597,"stargazers_count":70,"open_issues_count":1,"forks_count":12,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-05-25T20:58:36.086Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/box.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-23T18:44:48.000Z","updated_at":"2025-05-15T09:52:33.000Z","dependencies_parsed_at":"2022-09-13T10:00:43.068Z","dependency_job_id":null,"html_url":"https://github.com/box/brainy","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/box/brainy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/box%2Fbrainy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/box%2Fbrainy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/box%2Fbrainy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/box%2Fbrainy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/box","download_url":"https://codeload.github.com/box/brainy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/box%2Fbrainy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266071519,"owners_count":23871940,"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":[],"created_at":"2024-08-03T22:01:22.422Z","updated_at":"2025-07-20T05:32:49.311Z","avatar_url":"https://github.com/box.png","language":"PHP","funding_links":[],"categories":["类库"],"sub_categories":["模板引擎"],"readme":"[![Build Status](https://travis-ci.org/box/brainy.svg?branch=master)](https://travis-ci.org/box/brainy)\n[![Latest Stable Version](https://poser.pugx.org/box/brainy/v/stable)](https://packagist.org/packages/box/brainy)\n[![Project Status](http://opensource.box.com/badges/active.svg)](http://opensource.box.com/badges)\n[![Total Downloads](https://poser.pugx.org/box/brainy/downloads)](https://packagist.org/packages/box/brainy)\n[![License](https://poser.pugx.org/box/brainy/license)](https://packagist.org/packages/box/brainy)\n\n![Brainy](logo.png \"Brainy\")\n# Brainy\n\nBrainy is a replacement for the popular [Smarty](http://www.smarty.net/)\ntemplating language. It is a fork from the Smarty 3 trunk.\n\nBrainy is still very new and it's likely that you will encounter some issues.\nPlease report any problems that you encounter.\n\n\n## Why Brainy?\n\n- Brainy generates clean and fast code by default.\n- Brainy has security defaults that align better with [best practices](http://www.phptherightway.com/#security).\n- Brainy does not include features that are infrequently used and increase code bloat.\n\nBecause Brainy is a fork of Smarty 3, it shares much of the same syntax and features while eliminating dangerous footguns and making it hard to write bad code.\n\n\n## Getting Started\n\nCheck out the [Getting Started](https://github.com/box/brainy/wiki/Getting-Started)\npage on the wiki.\n\n\n### Minimum Requirements\n\n- PHP 7.3+\n- `mbstring` PHP extension\n\nThe `mbstring` extension is required in order to properly support Unicode in templates and user-provided content. Brainy 3 cannot be run in a mode that does not handle Unicode properly.\n\n\n## Contributing to Brainy\n\nFor information on how to set up a local dev environment and run the tests,\nsee the wiki page on [Hacking on Brainy](https://github.com/box/brainy/wiki/Hacking-on-Brainy).\n\n\n### Where is Brainy headed?\n\nSee [the project roadmap](https://github.com/box/brainy/wiki/Roadmap)\nfor information on upcoming releases.\n\n\n### Requested Contributions\n\nIf you're interested in helping out, pull requests for the following tasks will be warmly welcomed:\n\n- Convert all non-public methods to use camel case.\n- Add proper PHPDoc annotations to all functions and methods.\n- Refactoring:\n  - Eliminate dead code\n  - `@` error suppression\n  - Increase code coverage\n  - etc.\n- Help identify and resolve potential security issues, or find ways to help developers avoid security issues.\n- Performance optimization of generated code\n\nAt the time of writing, the project has approximately 68% line coverage.\n\n\n## Support\n\nNeed to contact us directly? Email oss@box.com and be sure to include the name\nof this project in the subject.\n\n\n## Copyright and License\n\nCopyright 2014-2015 Box, Inc. All rights reserved.\n\nCopyright 2002 – 2014 New Digital Group, Inc.\n\nThis library is licensed under the GNU Lesser Public License. A copy of the\nlicense should have [been provided](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbox%2Fbrainy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbox%2Fbrainy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbox%2Fbrainy/lists"}