Welcome Guest, Not a member yet? Register   Sign In
Proper decoupling in my libraries. Private messages library for instance.

I am writing my own library for Private Message SystemI
In the future (after it is finished and works somehow stable☻) i wanna make it publicly available (github and packagist) ready and simple to use.

I struggle to make it independent from my other libraries (or models)
For instance - when you wanna show all messages for a particular user - you need to get user names (and in this particular case i have to use functions of user model)
But i want to give people a choice to use another authentication lib (e.g. ION, tank and so on). 
Or people just can use different names for their tables or attributes? 

So guys can you give me some advise about how to decouple it without ruining its functionality and usability for user?

Theme © iAndrew 2016 - Forum software by © MyBB