Apex\Svc\Convert

  • public case(string $word, [ string $case = 'title' ]): string Convert naming convention
  • public date(DateTime | string $date, [ bool $add_time = false ]): string Format date
  • public dateInterval(string $interval): array Date interval
  • public exchangeMoney(string | float $amount, string $from_currency, string $to_currency, [ ?DateTime $date = null ]): ?mixed Exchange money to another currency.
  • public full_name(): Full name
  • public lastSeen(int $secs): string Format seconds into presentable last seen string.
  • public money(string | float $amount, [ string $currency = '' ], [ bool $include_abbr = true ], [ bool $is_crypto = false ]): string Format amount.
  • public tr(string $text, [ ... $args ]): string Translate string to active language