Welcome Guest, Not a member yet? Register   Sign In
Sharing things between CI4 instances
#3

(03-27-2024, 01:01 AM)kenjis Wrote: If you create Composer packages, you can share the code easily.
https://codeigniter4.github.io/CodeIgnit...kages.html

You don't need to publish your packages at packagist.org.
You can use private packages.

Thank you, that's a great suggestion, and probably good practice too.

But while developing, I'd prefer a more "live" sharing setup, like a "Super Global Includes" or "Super Global Helpers"; basically so that I do not have to update composer packages for the other two "instances" when I update stuff in "the package".

I mean, in theory, this could be done by just using use/require_once/etc and then just have a "shared folder structure", but I was wondering if there was an "official way" of doing it :-)

-joho
Reply


Messages In This Thread
Sharing things between CI4 instances - by joho - 03-27-2024, 12:38 AM
RE: Sharing things between CI4 instances - by joho - 03-27-2024, 01:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB