{"id":17893515,"url":"https://github.com/parisek/twig-common","last_synced_at":"2026-01-26T01:03:45.084Z","repository":{"id":57035929,"uuid":"396000748","full_name":"parisek/twig-common","owner":"parisek","description":"Twig Common Extension - some useful filters, functions, tokens to my twig template workflow","archived":false,"fork":false,"pushed_at":"2024-10-10T08:28:52.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-21T00:21:34.323Z","etag":null,"topics":["php","twig","twig-extension"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/parisek/twig-common","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/parisek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2021-08-14T12:21:39.000Z","updated_at":"2024-10-10T08:27:31.000Z","dependencies_parsed_at":"2024-10-28T15:24:14.713Z","dependency_job_id":"f13dc647-9fe3-4d3e-92c3-9686bd018353","html_url":"https://github.com/parisek/twig-common","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"6e00da2415767e3c8d6e702bcc50f18411b04eef"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/parisek/twig-common","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parisek%2Ftwig-common","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parisek%2Ftwig-common/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parisek%2Ftwig-common/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parisek%2Ftwig-common/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parisek","download_url":"https://codeload.github.com/parisek/twig-common/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parisek%2Ftwig-common/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28763107,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T00:37:26.264Z","status":"ssl_error","status_checked_at":"2026-01-26T00:37:25.959Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["php","twig","twig-extension"],"created_at":"2024-10-28T14:53:00.400Z","updated_at":"2026-01-26T01:03:45.070Z","avatar_url":"https://github.com/parisek.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Twig Common Extension\n=====================\n\n## Installation\n\nTwig Common Extension can be easily installed using [composer](http://getcomposer.org/)\n\n    composer require parisek/twig-common\n\n## Usage\n\n```php\n$twig = new Twig_Environment($loader);\n$twig-\u003eaddExtension(new Parisek\\Twig\\CommonExtension());\n```\n\n## Filters\n\nWill load YAML to variable\n```twig\n{% set sidebar = source('sidebar.yml')|yaml_parse %}\n```\n\nWill return content without translation (useful for debug without translation extension)\n```twig\n{{ \"Hello\"|t }}\n```\n\n## Functions\n\nWill generate unique ID on the page\n```twig\n{{ uniqueId() }}\n```\n\n## Tokens\nWill return content without translation (useful for debug without translation extension)\n\n```twig\n{% trans with {'context': 'domain name'} %}{{ variable }}{% endtrans %}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparisek%2Ftwig-common","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparisek%2Ftwig-common","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparisek%2Ftwig-common/lists"}