code: public static function decodeId($hash, $salt, $hashLength = self::MIN_HASH_LENGTH)
      {
          $hashIds = new Hashids($salt, $hashLength);
          return ArrayHelper::getValue($hashIds->decode($hash), '0');
      }
docs: Decodes a hash into an id
  @author Adegoke Obasa <goke@cottacush.com>
  @param $hash
  @param $salt
  @param int $hashLength
  @return int
  @throws \Exception