PHP Code for MyAllocator API