Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using php for config rather than JSON #1

Open
daltonrooney opened this issue Oct 9, 2023 · 0 comments
Open

Using php for config rather than JSON #1

daltonrooney opened this issue Oct 9, 2023 · 0 comments

Comments

@daltonrooney
Copy link

Thanks for sharing this at DotAll last week! It's so cool to see more examples of component-driven Craft development.

This is more of a discussion than an issue, but it occurred to me that using a php config file that returns an array rather than an actual json file might be useful for generating component context. That would allow you to do things like pass in environment variables and use more dynamic data, via something like fakerphp/faker or even a live API.

We've forked the repo and are already looking to see how we might adapt it to our workflow. The results are promising! It makes me wonder if this could be adapted into a general purpose Craft plugin at some point?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant