a simple architecture in php.