{"id":15063265,"url":"https://github.com/phmlabs/twigcontentbundle","last_synced_at":"2026-01-02T09:17:34.793Z","repository":{"id":57039059,"uuid":"58990951","full_name":"phmLabs/TwigContentBundle","owner":"phmLabs","description":null,"archived":false,"fork":false,"pushed_at":"2019-08-09T13:38:09.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T16:13:03.823Z","etag":null,"topics":["bundle","symfony","twig","wordpress"],"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/phmLabs.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-17T04:41:12.000Z","updated_at":"2019-08-09T13:38:11.000Z","dependencies_parsed_at":"2022-08-24T00:51:21.096Z","dependency_job_id":null,"html_url":"https://github.com/phmLabs/TwigContentBundle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phmLabs%2FTwigContentBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phmLabs%2FTwigContentBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phmLabs%2FTwigContentBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phmLabs%2FTwigContentBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phmLabs","download_url":"https://codeload.github.com/phmLabs/TwigContentBundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243754092,"owners_count":20342542,"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":["bundle","symfony","twig","wordpress"],"created_at":"2024-09-24T23:54:14.608Z","updated_at":"2026-01-02T09:17:34.759Z","avatar_url":"https://github.com/phmLabs.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"#TwigContentBundle\n\nThis twig tag extension helps to provide content snippets from different sources. It also provides a fallback case if no content retriever is defined.\n\n## Usage\n\n```twig\n{% content status_no_projects_yet %}\n    This is the default text for the content snippet with the identifier status_no_projects_yet. \n    It will appear if the configured retriever does not return content.\n{% endcontent %}\n```\n\n## Content Retriever\n\n### Null Retriever\nThe null retriever returns the text defined inside the content block. The null retriever is the standard retriever and must not be configured.\n\n### Http Retriever\nThe http retriever can be used to fetch content via an http request.\n\n```yml\n# app/config/services.yml\n\nservices:\n    phmlabs.content.retriever:\n        class: phmLabs\\TwigContentBundle\\Retriever\\HttpRetriever\n        arguments: [\"http://cms.example.com/#identifier#\"]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphmlabs%2Ftwigcontentbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphmlabs%2Ftwigcontentbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphmlabs%2Ftwigcontentbundle/lists"}