This topic is locked
[SOLVED]

How to integrate a new PHPRunner application into an existing project

3/29/2025 6:15:30 AM
PHPRunner General questions
francesco author

Hi everyone,

I've created a new application in PHPRunner, and now I'd like to integrate it into an existing project.
Both applications use the exact same security/login tables (users, groups, permissions, etc.).
Should I save my new application as a template and then import it into the existing one? If so, do I need to remove the security tables from the new application before saving it as a template to avoid conflicts?
Any advice or recommended best practices would be greatly appreciated.
Thanks in advance!

C
Chris Whitehead 4/1/2025

I've used that method previously in 10.91, then I had a play about with the JWT keys which works well. I actually like this better as it makes the dev a bit faster.

I wanted to break a large project down for speed and make it easier to develop rather than build a larger project each time.

I found that using the shared JWT in security -> session control

The linking to the other application pages in each of the menus, the users can swap between the apps/sections without knowing they actually are.

I understand this makes it a little harder sometimes as you're dealing with 2 codebases rather than one, like adding a field into the shared table, you have to update both, you'd still have to update both even if it was one application

C
Chris Whitehead 4/1/2025

I must add, If I can see any issues, this would be with dynamic permissions so that might be worth keeping an eye out for names which are the same and updating groups, I've not got that far yet.

Sergey Kornilov admin 4/1/2025

Saving a project as a template and adding it to another project is a viable option. And yes, it probably makes sense to turn off the security in the second project before saving it as a template.

francesco author 4/3/2025

Thank you very much for your helpful answers!