{"id":18496931,"url":"https://github.com/shapecode/twig-collector-extension-bundle","last_synced_at":"2025-05-14T04:36:29.269Z","repository":{"id":57048924,"uuid":"60514084","full_name":"shapecode/twig-collector-extension-bundle","owner":"shapecode","description":null,"archived":false,"fork":false,"pushed_at":"2018-06-08T11:43:34.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-17T00:17:28.826Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shapecode.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":"2016-06-06T09:03:26.000Z","updated_at":"2018-06-08T11:43:35.000Z","dependencies_parsed_at":"2022-08-23T19:10:17.439Z","dependency_job_id":null,"html_url":"https://github.com/shapecode/twig-collector-extension-bundle","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shapecode%2Ftwig-collector-extension-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shapecode%2Ftwig-collector-extension-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shapecode%2Ftwig-collector-extension-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shapecode%2Ftwig-collector-extension-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shapecode","download_url":"https://codeload.github.com/shapecode/twig-collector-extension-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254071501,"owners_count":22009802,"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-11-06T13:32:35.924Z","updated_at":"2025-05-14T04:36:29.248Z","avatar_url":"https://github.com/shapecode.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shapecode - Twig Collector Bundle\n\n[![SensioLabsInsight](https://insight.sensiolabs.com/projects/b2a154f2-2757-44c5-b679-6a11e922292c/mini.png)](https://insight.sensiolabs.com/projects/b2a154f2-2757-44c5-b679-6a11e922292c)\n[![Latest Stable Version](https://poser.pugx.org/shapecode/twig-collector-extension-bundle/v/stable)](https://packagist.org/packages/shapecode/twig-collector-extension-bundle) \n[![Total Downloads](https://poser.pugx.org/shapecode/twig-collector-extension-bundle/downloads)](https://packagist.org/packages/shapecode/twig-collector-extension-bundle) \n[![Latest Unstable Version](https://poser.pugx.org/shapecode/twig-collector-extension-bundle/v/unstable)](https://packagist.org/packages/shapecode/twig-collector-extension-bundle) \n[![License](https://poser.pugx.org/shapecode/twig-collector-extension-bundle/license)](https://packagist.org/packages/shapecode/twig-collector-extension-bundle)\n\n## Install instructions\n\nVia Composer\n\n``` bash\n$ composer require shapecode/twig-collector-extension-bundle\n```\n\nEnable the bundle in your kernel:\n\n``` php\n\u003c?php\n// app/AppKernel.php\n\npublic function registerBundles()\n{\n    $bundles = array(\n        // ...\n        new Shapecode\\Bundle\\TwigCollectorBundle\\ShapecodeTwigCollectorBundle(),\n    );\n}\n```\n\n## Usage\n\ncollect stuff over all templates\n\n``` twig\n{% collector stylesheets %}\n\u003cstyle\u003e\n    .body {\n        margin-bottom: 10px;\n    }\n\u003c/style\u003e\n{% endcollector %}\n```\n\n... and output it at a specific line \n\n``` twig\n{% collection stylesheets %}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshapecode%2Ftwig-collector-extension-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshapecode%2Ftwig-collector-extension-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshapecode%2Ftwig-collector-extension-bundle/lists"}