With Coilpack, the Twig templates are supported - this is understood. Is there a way in which Laravel is not required to get the support for Twig templates and GraphQL APIs for the content? The Coilpack based solution adds to the overall steps and complexity, which I am seeking to avoid.
Hi Maneesh,
Coilpack was developed to take advantage of several Laravel packages to enable support for Twig, Blade and GraphQL so unfortunately it isn’t possible to use it without Laravel. We did try to minimize the amount of Laravel knowledge and setup needed to use Coilpack but you’re right it does involve extra steps and increased complexity.
I am not aware of any packages that provide Twig templating support in ExpressionEngine but Bones does offer a path to utilizing ExpressionEngine in a headless manner.
Hi Bryan, it would be great to have EE support GraphQL API framework and Twig natively. I understand Bones and other add-ons support the API / headless usage. The intent behind my post was to see if EE could natively support these or not.
Twig improves performance, and GraphQL can bring EE into a single source for web and API driven mobile apps, and possibly even for things like push notifications, social media automation, and more.
But yes, I do understand the team’s motivation to leverage Laravel’s existing infra.
Thank you for taking the time to respond!
Hi Maneesh, my pleasure!
I completely agree with you, it would be wonderful to have GraphQL and Twig supported natively and that is something we have discussed and would like to see in the future.
In the meantime if you want to give Coilpack a try and need help with the Laravel side of things there is a dedicated channel in our Slack where community members would be happy to assist you 😊
you can get Twig + GraphQL without Laravel possibly, but with some effort and missing convenience/features. To do this, you need to skip Laravel completely and use a Twig integration (or plugin) that renders templates in EE. For content output, use EE’s built-in templating system or custom EE modules to expose content.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.