<?php namespace Heanup\App\Api\Controller; use Heanup\App\Api\Controller; class ReceivedSms extends Controller { protected function main() { file_put_contents(APP_DIR . "/test_msg.txt", json_encode($_REQUEST).PHP_EOL); } }