{"id":18620812,"url":"https://github.com/exts/twigulence","last_synced_at":"2025-11-03T12:30:27.017Z","repository":{"id":56980753,"uuid":"73999516","full_name":"exts/Twigulence","owner":"exts","description":"Twig Integration Library for Opulence PHP 7.0 Framework","archived":false,"fork":false,"pushed_at":"2016-11-17T07:25:46.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-27T04:26:21.772Z","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/exts.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-11-17T06:58:33.000Z","updated_at":"2016-11-17T07:02:11.000Z","dependencies_parsed_at":"2022-08-21T10:50:28.017Z","dependency_job_id":null,"html_url":"https://github.com/exts/Twigulence","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exts%2FTwigulence","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exts%2FTwigulence/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exts%2FTwigulence/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exts%2FTwigulence/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exts","download_url":"https://codeload.github.com/exts/Twigulence/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239414226,"owners_count":19634396,"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-07T04:08:04.692Z","updated_at":"2025-11-03T12:30:26.932Z","avatar_url":"https://github.com/exts.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\n\nTwigulence is a bootstrapper for the Opulence PHP 7.0 Framework.\n\n## Installation\n\n1. `composer require exts/twigulence --no-dev`\n2. If you're running a fresh [`Opulence/Project`]() then I recommend heading into your `/PROJECT_NAME/config/http` folder and find the `bootstrappers.php` file\n3. Remove the `ViewFunctionsBootstrapper::class` and `ViewBootstrapper::class` from this file and replace those with our Bootstrapper class `Twigulence\\Bootstrapper::class`\n4. To test add a twig file to your `resources/views` folder then in your controller call `$this-\u003eviewFactory-\u003ecreateView` with the file name excluding the file extension and you can use the setVars to set custom values to the view object and it'll pass that data to the twig template.\n\nFor now I hope this helps you get twig working with Opulence\n\n## TODO\n\n- Working on the ability to make it easy to customize the bootstrapper, for now your best bet is to extend the Bootstrapper class and overwrite the `getTwigInstance` method.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexts%2Ftwigulence","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexts%2Ftwigulence","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexts%2Ftwigulence/lists"}