PHP start wip.
Merge pull request #65 from mrunalp/dev/cartridge_refactor

PHP start wip.