code: public static function sec2time($seconds) 
      {
          $sec = intval($seconds);
          $dtF = new \DateTime("@0");
          $dtT = new \DateTime("@$sec");
          return $dtF->diff($dtT)->format('%a days, %h hours, %i minutes and %s seconds');
      }
docs: Convert seconds into human readeble time
  @param int $seconds
  @return string