some rough thoughts on what an xspec implementation in php could look like