I'm working on an app which has a set of features. I want to restrict every feature based on the subscription package that the user opted.
For example:
Let's say i have three subscription types:
1) Bronze - Free User
2) Silver
3) Gold
And i have three features:
1) Create additional user accounts
2) Create a group
Now i want users with Silver and Gold to have access to feature 1. And only users with Gold subscription given access to feature 2.
What could be the best way to implement this in PHP and database (Mysql).
Thanks,
Sash