As a end-user of Discourse you should not really care about it’s PHP or Ruby or XYZ aside for the hosting. Because Discourse provides a full API and standard authentication systems like OAuth2 (used by many social sites like Facebook) which you can use and integrate on every major technos out there including PHP.
The social features you are talking about (following users, custom profile page where you can post things and other users can comment) are features which can be developed in a totally external application (which would be using Discourse API) or in a Discourse plugin which would extend users profiles.