{"id":23220875,"url":"https://github.com/deprecated-packages/symplifymodularlattefilters","last_synced_at":"2026-05-02T06:42:31.688Z","repository":{"id":57063812,"uuid":"83356201","full_name":"deprecated-packages/SymplifyModularLatteFilters","owner":"deprecated-packages","description":"[DEPRECATED] Use this instead →","archived":false,"fork":false,"pushed_at":"2017-06-07T12:05:49.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T11:37:43.579Z","etag":null,"topics":["filters","latte","modular","nette","symplify"],"latest_commit_sha":null,"homepage":"https://github.com/contributte/latte","language":"PHP","has_issues":false,"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/deprecated-packages.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-02-27T20:58:46.000Z","updated_at":"2017-06-16T08:45:28.000Z","dependencies_parsed_at":"2022-08-24T10:10:16.559Z","dependency_job_id":null,"html_url":"https://github.com/deprecated-packages/SymplifyModularLatteFilters","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deprecated-packages%2FSymplifyModularLatteFilters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deprecated-packages%2FSymplifyModularLatteFilters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deprecated-packages%2FSymplifyModularLatteFilters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deprecated-packages%2FSymplifyModularLatteFilters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deprecated-packages","download_url":"https://codeload.github.com/deprecated-packages/SymplifyModularLatteFilters/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247361598,"owners_count":20926642,"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":["filters","latte","modular","nette","symplify"],"created_at":"2024-12-18T22:14:19.560Z","updated_at":"2026-05-02T06:42:31.663Z","avatar_url":"https://github.com/deprecated-packages.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Modular Latte Filters\n\n[![Build Status](https://img.shields.io/travis/Symplify/ModularLatteFilters/master.svg?style=flat-square)](https://travis-ci.org/Symplify/ModularLatteFilters)\n[![Downloads](https://img.shields.io/packagist/dt/symplify/modular-latte-filters.svg?style=flat-square)](https://packagist.org/packages/symplify/modular-latte-filters)\n\n\n## Install\n\n```sh\ncomposer require symplify/modular-latte-filters\n```\n\nRegister the extension:\n\n```yaml\n# app/config/config.neon\nextensions:\n\t- Symplify\\ModularLatteFilters\\DI\\ModularLatteFiltersExtension\n```\n\n\n## Usage\n\nCreate class implementing `Symplify\\ModularLatteFilters\\DI\\FiltersProviderInterface`:\n\n```php\nnamespace App\\Modules\\SomeModule\\Latte;\n\nuse Symplify\\ModularLatteFilters\\DI\\FiltersProviderInterface;\n\n\nfinal class SomeFilters implements FiltersProviderInterface\n{\n\n\tpublic function getFilters() : array\n\t{\n\t\treturn [\n\t\t\t'double' =\u003e function ($value) {\n\t\t\t\treturn $value * 2;\n\t\t\t}\n\t\t];\n\t}\n\n}\n```\n\nRegister it to `config.neon`:\n\n```yaml\n# app/config/config.neon\nservices:\n\t- App\\Modules\\SomeModule\\Latte\\SomeFilters\n```\n\nUse in any template:\n\n```latte\n{* app/templates/Homepage/default.latte *}\n\nAnd your self-esteem is {$selfEsteem|double}\n```\n\nThat's it!\n\n\n\n## Contributing\n\nSend [issue](https://github.com/Symplify/Symplify/issues) or [pull-request](https://github.com/Symplify/Symplify/pulls) to main repository.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeprecated-packages%2Fsymplifymodularlattefilters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeprecated-packages%2Fsymplifymodularlattefilters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeprecated-packages%2Fsymplifymodularlattefilters/lists"}