PHP model of a web-based resource