Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

usanzadunje's avatar

Plugin based Laravel App (similar to WP)

Hello guys,

I am trying to make modular system which should be like Wordpress plugins.

Example: I have core which will have some basic functionality and give user ability to go on plugins page and install them by clicking install button(like wordpress).

My solution: I would use different composer packages for each module(plugin), on click I would install them to users codebase and it would work. There is package laravel-modules which I could also use. Also I thought of hosting separate server which will be center place for all plugins. It would have connection to my app and when user goes to plugins page it would make request to API of this server which will give it all plugins available.

My problem: Some of these plugins will require payment, if I use separate server for plugins as mentioned above I could just require user to send some kind of identification which will tell me if they paid for plugin and then let them download it from the plugins server.

However my problem is that when their license for plugin expires how can I disable them for further using that plugin in their application? Every solution I think of could be tampered with if user is in programming 'waters'. For example, make API request pinging my server and asking it if license is still valid, saving into database. All of these security measures could be removed if user digs into code and finds it.

I would like to hear your advices or even experiences(if you did something similar) for handling paid plugins problem which I described. Also if you have any other advice I would be more than glad to hear it.

Thanks and best regards.

0 likes
3 replies
bugsysha's avatar

You will not be able to stop them from using it once they've installed it. You can forbid updates. PHP is not the best choice for this business model. Think about another approach.

usanzadunje's avatar

@bugsysha Could you just point me into right direction if you have any other approach in mind? Thanks a lot!

bugsysha's avatar

@usanzadunje instead of using subscription-based, use the one-time payment model. Charge more, but only once.

Please or to participate in this conversation.