Documentation

AlnumHelper
in package

Table of Contents

Methods

checkCpfCnpj()  : bool
Função para validar cpf/cnpj
converterJurosAnual()  : mixed
criptoPix()  : mixed
decimalBRAtoUSD()  : string
decimalExtrato()  : mixed
decimalUSDtoBRA()  : string
decimalUSDtoUSD()  : string
extensiveExpression()  : mixed
extrairNomeTabela()  : mixed
firstName()  : mixed
formatStringDecimal()  : mixed
generatorAlphabet()  : mixed
Função de gerar as letras usadas na geração dos arquivos de excel
gerarChave()  : string
gerarCodigoAleatorio()  : mixed
getLastWork()  : mixed
getLongestCommonSubstring()  : mixed
getLongestString()  : mixed
isDecimalBrazilianFormat()  : bool
isISONumber()  : bool
limparLink()  : mixed
lowerCase()  : mixed
manyPatternsOneReplacement()  : mixed
mask()  : mixed
Função para aplicar mascaras
onlyAlphaNumeric()  : mixed
Função para deixar apenas letras e números, sem caracteres especiais.
onlyAlphaNumericAndSpace()  : mixed
Função para deixar apenas letras, números e espaços, sem caracteres especiais.
onlyNumber()  : mixed
Função para remover qualquer caracter de um valor
onlyNumberAndHyphen()  : mixed
Função manter string apenas com números e hífens.
onlyNumberAndOperator()  : mixed
onlyString()  : mixed
Função para remover numeros de um valor
prefixE1BeforeE2ForAllElement()  : mixed
preg_match_all()  : mixed
removeAccent()  : mixed
removerCaracteresEspeciais()  : mixed
replaceFirstMatch()  : mixed
replaceSymbolByValues()  : mixed
str_contains()  : mixed
summaryString()  : mixed
unixFilename()  : mixed
upperCase()  : mixed
Função para transformar string em upperCase FORMATO UTF+8
verificaTabelaLoteEstoque()  : mixed
calc_digitos_posicoes()  : mixed

Methods

checkCpfCnpj()

Função para validar cpf/cnpj

public static checkCpfCnpj(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

converterJurosAnual()

public static converterJurosAnual(mixed $taxa, mixed $parcelas_anual) : mixed
Parameters
$taxa : mixed
$parcelas_anual : mixed

criptoPix()

public static criptoPix(mixed $string[, mixed $inicio_visivel = 3 ][, mixed $fim_visivel = 2 ]) : mixed
Parameters
$string : mixed
$inicio_visivel : mixed = 3
$fim_visivel : mixed = 2

decimalBRAtoUSD()

public static decimalBRAtoUSD(mixed $value[, mixed $maxDecimal = 8 ][, mixed $minDecimal = 8 ]) : string
Parameters
$value : mixed
$maxDecimal : mixed = 8
$minDecimal : mixed = 8
Return values
string

decimalExtrato()

public static decimalExtrato(mixed $value) : mixed
Parameters
$value : mixed

decimalUSDtoBRA()

public static decimalUSDtoBRA(mixed $value[, mixed $maxDecimal = 2 ][, mixed $minDecimal = 2 ]) : string
Parameters
$value : mixed
$maxDecimal : mixed = 2
$minDecimal : mixed = 2
Return values
string

decimalUSDtoUSD()

public static decimalUSDtoUSD(mixed $value[, mixed $maxDecimal = 2 ][, mixed $minDecimal = 2 ]) : string
Parameters
$value : mixed
$maxDecimal : mixed = 2
$minDecimal : mixed = 2
Return values
string

extensiveExpression()

public static extensiveExpression(mixed $valor) : mixed
Parameters
$valor : mixed

extrairNomeTabela()

public static extrairNomeTabela(mixed $sql) : mixed
Parameters
$sql : mixed

firstName()

public static firstName(mixed $nome) : mixed
Parameters
$nome : mixed

formatStringDecimal()

public static formatStringDecimal(mixed $str[, mixed $decimal = 2 ][, mixed $format_out = 'USD' ]) : mixed
Parameters
$str : mixed
$decimal : mixed = 2
$format_out : mixed = 'USD'

generatorAlphabet()

Função de gerar as letras usadas na geração dos arquivos de excel

public static generatorAlphabet(mixed $total[, mixed $begin = 'A' ]) : mixed
Parameters
$total : mixed
$begin : mixed = 'A'

gerarChave()

public static gerarChave(array<string|int, mixed> $dados, array<string|int, mixed> $campos[, string $separador = '_' ]) : string
Parameters
$dados : array<string|int, mixed>
$campos : array<string|int, mixed>
$separador : string = '_'
Return values
string

gerarCodigoAleatorio()

public static gerarCodigoAleatorio([mixed $tamanho = 6 ][, mixed $number_only = false ]) : mixed
Parameters
$tamanho : mixed = 6
$number_only : mixed = false

getLastWork()

public static getLastWork(string $str) : mixed
Parameters
$str : string

getLongestCommonSubstring()

public static getLongestCommonSubstring(mixed $string1, mixed $string2) : mixed
Parameters
$string1 : mixed
$string2 : mixed

getLongestString()

public static getLongestString(mixed $string1, mixed $string2[, mixed $regex_to_clean = '/[^a-zA-Z]/' ]) : mixed
Parameters
$string1 : mixed
$string2 : mixed
$regex_to_clean : mixed = '/[^a-zA-Z]/'

isDecimalBrazilianFormat()

public static isDecimalBrazilianFormat(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

isISONumber()

public static isISONumber(mixed $value[, mixed $empty_is_number = false ][, mixed $null_str_is_number = false ]) : bool
Parameters
$value : mixed
$empty_is_number : mixed = false
$null_str_is_number : mixed = false
Return values
bool
public static limparLink(mixed $url) : mixed
Parameters
$url : mixed

lowerCase()

public static lowerCase(mixed $value) : mixed
Parameters
$value : mixed

manyPatternsOneReplacement()

public static manyPatternsOneReplacement(string $string, array<string|int, mixed> $pattern, string $replacement) : mixed
Parameters
$string : string
$pattern : array<string|int, mixed>
$replacement : string

mask()

Função para aplicar mascaras

public static mask(mixed $val, mixed $mask) : mixed
Parameters
$val : mixed
$mask : mixed

onlyAlphaNumeric()

Função para deixar apenas letras e números, sem caracteres especiais.

public static onlyAlphaNumeric(mixed $value) : mixed
Parameters
$value : mixed

onlyAlphaNumericAndSpace()

Função para deixar apenas letras, números e espaços, sem caracteres especiais.

public static onlyAlphaNumericAndSpace(mixed $value) : mixed
Parameters
$value : mixed

onlyNumber()

Função para remover qualquer caracter de um valor

public static onlyNumber(mixed $value) : mixed
Parameters
$value : mixed

onlyNumberAndHyphen()

Função manter string apenas com números e hífens.

public static onlyNumberAndHyphen(mixed $value) : mixed
Parameters
$value : mixed

onlyNumberAndOperator()

public static onlyNumberAndOperator(mixed $value) : mixed
Parameters
$value : mixed

onlyString()

Função para remover numeros de um valor

public static onlyString(mixed $value) : mixed
Parameters
$value : mixed

prefixE1BeforeE2ForAllElement()

public static prefixE1BeforeE2ForAllElement(string $E1, string $E2, string|null $all_element) : mixed
Parameters
$E1 : string
$E2 : string
$all_element : string|null

preg_match_all()

public static preg_match_all(mixed $value, mixed $pattern) : mixed
Parameters
$value : mixed
$pattern : mixed

removeAccent()

public static removeAccent(mixed $value) : mixed
Parameters
$value : mixed

removerCaracteresEspeciais()

public static removerCaracteresEspeciais(string $texto_in, array<string|int, mixed> $caracteres_eliminar, string $substituir_por) : mixed
Parameters
$texto_in : string
$caracteres_eliminar : array<string|int, mixed>
$substituir_por : string

replaceFirstMatch()

public static replaceFirstMatch(mixed $old_word, mixed $new_word, mixed $string) : mixed
Parameters
$old_word : mixed
$new_word : mixed
$string : mixed

replaceSymbolByValues()

public static replaceSymbolByValues(string $string, string $symbol, array<string|int, mixed> $values[, string $pre_pos_value = '' ]) : mixed
Parameters
$string : string
$symbol : string
$values : array<string|int, mixed>
$pre_pos_value : string = ''

str_contains()

public static str_contains(mixed $fullstr, mixed $substr) : mixed
Parameters
$fullstr : mixed
$substr : mixed

summaryString()

public static summaryString(mixed $string[, mixed $start = 0 ][, mixed $width = 200 ][, mixed $concat_end = '(...)' ]) : mixed
Parameters
$string : mixed
$start : mixed = 0
$width : mixed = 200
$concat_end : mixed = '(...)'

unixFilename()

public static unixFilename(string $filename) : mixed
Parameters
$filename : string

upperCase()

Função para transformar string em upperCase FORMATO UTF+8

public static upperCase(mixed $value) : mixed
Parameters
$value : mixed

verificaTabelaLoteEstoque()

public static verificaTabelaLoteEstoque(mixed $sql) : mixed
Parameters
$sql : mixed

calc_digitos_posicoes()

private static calc_digitos_posicoes(mixed $digitos[, mixed $posicoes = 10 ][, mixed $soma_digitos = 0 ]) : mixed
Parameters
$digitos : mixed
$posicoes : mixed = 10
$soma_digitos : mixed = 0

        
On this page

Search results