PHP 클래스 Eduardokum\LaravelBoleto\Util

파일 보기 프로젝트 열기: eduardokum/laravel-boleto 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$bancos

공개 메소드들

메소드 설명
adiciona ( &$line, $i, $f, $value ) : array Função para add valor a linha nas posições informadas.
adiciona ( &$line, integer $i, integer $f, $value ) : array Função para add valor a linha nas posições informadas.
alphanumberOnly ( String $string ) : String Retorna somente alfanumericos
array2Controle ( array $a ) : string
controle2array ( $controle ) : null | string
convertDateToSingleYear ( $date ) Conversão para as datas no formato ddmmyyyy para ddmmyy
convertSingleStringDate ( $date ) : Carbon\Carbon Conversão da data no formato 'XXXXXX' para Carbon
criarRetornoFake ( $file, string $ocorrencia = '02' ) : string Pela remessa cria um retorno fake para testes.
dataJuliano ( $date, string $format = 'Y-m-d' ) : string
dateBrToUs ( string $date ) : string
dvSatander ( $n ) : integer
fatorVencimento ( $date, string $format = 'Y-m-d' ) : float
fatorVencimento ( Carbon\Carbon $date, string $format = 'Y-m-d' ) : integer
fatorVencimentoBack ( $factor, string $format = 'Y-m-d' ) : boolean | string
formatCnab ( $tipo, $valor, $tamanho, integer $dec, string $sFill = '' ) : string
formatCnab ( $tipo, $valor, integer $tamanho, integer $dec, string $sFill = '' ) : string
isCnab240 ( $content ) : boolean Validação para o tipo de cnab 240
isCnab400 ( $content ) : boolean Validação para o tipo de cnab 400
isHeaderRetorno ( $header ) : boolean Valida se o header é de um arquivo retorno valido, 240 ou 400 posicoes
lettersNot ( String $string ) : String Retorna somente as letras da string
lettersOnly ( String $string ) : String Retorna somente as letras da string
lower ( String $string ) : String Retorna a String em minusculo
maskString ( string $val, string $mask ) : string Função para mascarar uma string, mascara tipo ##-##-##
modulo10 ( $n ) : integer
modulo11 ( $n, integer $factor = 2, integer $base = 9, integer $rest, integer $whenTen ) : integer
modulo11Reverso ( $n, integer $earlyFactor = 2, integer $lastFactor = 9 ) : integer
nFloat ( string $number, integer $decimals = 2, boolean $showThousands = false ) : string Mostra o Valor no float Formatado
nReal ( float $number, integer $decimals = 2, boolean $symbol = true, boolean $fixed = true ) : string Mostra o Valor no real Formatado
nRealExtenso ( $value, $uppercase ) : string Mostra um numero por extenso.
normalizeChars ( string $string ) : string Função para limpar acentos de uma string
notLetters ( String $string ) : String Retorna somente as letras da string
notNumbers ( String $string ) : String Retorna somente os digitos da string
numberFormatConvenio ( $n, $loop, $insert ) : string
numberFormatConvenio ( $n, integer $loop, $insert ) : string
numberFormatGeral ( $n, $loop, $insert ) : string
numberFormatGeral ( $n, integer $loop, $insert ) : string
numberFormatValue ( $n, $loop, $insert ) : string
numberFormatValue ( string $n, integer $loop, integer $insert ) : string
numbersNot ( String $string ) : String Retorna somente os digitos da string
numbersOnly ( String $string ) : String Retorna somente os digitos da string
onlyAlphanumber ( String $string ) : String Retorna somente alfanumericos
onlyLetters ( String $string ) : String Retorna somente as letras da string
onlyNumbers ( String $string ) : String Retorna somente os digitos da string
percent ( $big, $percent ) : string Return percentage of value;
percentOf ( $big, $small, integer $defaultOnZero ) : string Return percent x of y;
remove ( $i, $f, &$array ) : string Remove trecho do array.
upFirst ( String $string ) : String Retorna a String em minusculo
upper ( String $string ) : String Retorna a String em MAIUSCULO

메소드 상세

adiciona() 공개 정적인 메소드

Função para add valor a linha nas posições informadas.
public static adiciona ( &$line, $i, $f, $value ) : array
$line
$i
$f
$value
리턴 array

adiciona() 공개 정적인 메소드

Função para add valor a linha nas posições informadas.
public static adiciona ( &$line, integer $i, integer $f, $value ) : array
$line
$i integer
$f integer
$value
리턴 array

alphanumberOnly() 공개 정적인 메소드

Retorna somente alfanumericos
public static alphanumberOnly ( String $string ) : String
$string String
리턴 String

array2Controle() 공개 정적인 메소드

public static array2Controle ( array $a ) : string
$a array
리턴 string

controle2array() 공개 정적인 메소드

public static controle2array ( $controle ) : null | string
$controle
리턴 null | string

convertDateToSingleYear() 공개 정적인 메소드

Conversão para as datas no formato ddmmyyyy para ddmmyy
public static convertDateToSingleYear ( $date )

convertSingleStringDate() 공개 정적인 메소드

Conversão da data no formato 'XXXXXX' para Carbon
public static convertSingleStringDate ( $date ) : Carbon\Carbon
$date
리턴 Carbon\Carbon

criarRetornoFake() 공개 정적인 메소드

Pela remessa cria um retorno fake para testes.
public static criarRetornoFake ( $file, string $ocorrencia = '02' ) : string
$file Remessa
$ocorrencia string
리턴 string

dataJuliano() 공개 정적인 메소드

public static dataJuliano ( $date, string $format = 'Y-m-d' ) : string
$date
$format string
리턴 string

dateBrToUs() 공개 정적인 메소드

public static dateBrToUs ( string $date ) : string
$date string
리턴 string

dvSatander() 공개 정적인 메소드

public static dvSatander ( $n ) : integer
$n
리턴 integer

fatorVencimento() 공개 정적인 메소드

public static fatorVencimento ( $date, string $format = 'Y-m-d' ) : float
$date
$format string
리턴 float

fatorVencimento() 공개 정적인 메소드

public static fatorVencimento ( Carbon\Carbon $date, string $format = 'Y-m-d' ) : integer
$date Carbon\Carbon
$format string
리턴 integer

fatorVencimentoBack() 공개 정적인 메소드

public static fatorVencimentoBack ( $factor, string $format = 'Y-m-d' ) : boolean | string
$factor
$format string
리턴 boolean | string

formatCnab() 공개 정적인 메소드

public static formatCnab ( $tipo, $valor, $tamanho, integer $dec, string $sFill = '' ) : string
$tipo
$valor
$tamanho
$dec integer
$sFill string
리턴 string

formatCnab() 공개 정적인 메소드

public static formatCnab ( $tipo, $valor, integer $tamanho, integer $dec, string $sFill = '' ) : string
$tipo
$valor
$tamanho integer
$dec integer
$sFill string
리턴 string

isCnab240() 공개 정적인 메소드

Validação para o tipo de cnab 240
public static isCnab240 ( $content ) : boolean
$content
리턴 boolean

isCnab400() 공개 정적인 메소드

Validação para o tipo de cnab 400
public static isCnab400 ( $content ) : boolean
$content
리턴 boolean

isHeaderRetorno() 공개 정적인 메소드

Valida se o header é de um arquivo retorno valido, 240 ou 400 posicoes
public static isHeaderRetorno ( $header ) : boolean
$header
리턴 boolean

lettersNot() 공개 정적인 메소드

Retorna somente as letras da string
public static lettersNot ( String $string ) : String
$string String
리턴 String

lettersOnly() 공개 정적인 메소드

Retorna somente as letras da string
public static lettersOnly ( String $string ) : String
$string String
리턴 String

lower() 공개 정적인 메소드

Retorna a String em minusculo
public static lower ( String $string ) : String
$string String
리턴 String

maskString() 공개 정적인 메소드

Função para mascarar uma string, mascara tipo ##-##-##
public static maskString ( string $val, string $mask ) : string
$val string
$mask string
리턴 string

modulo10() 공개 정적인 메소드

public static modulo10 ( $n ) : integer
$n
리턴 integer

modulo11() 공개 정적인 메소드

public static modulo11 ( $n, integer $factor = 2, integer $base = 9, integer $rest, integer $whenTen ) : integer
$n
$factor integer
$base integer
$rest integer
$whenTen integer
리턴 integer

modulo11Reverso() 공개 정적인 메소드

public static modulo11Reverso ( $n, integer $earlyFactor = 2, integer $lastFactor = 9 ) : integer
$n
$earlyFactor integer
$lastFactor integer
리턴 integer

nFloat() 공개 정적인 메소드

Mostra o Valor no float Formatado
public static nFloat ( string $number, integer $decimals = 2, boolean $showThousands = false ) : string
$number string
$decimals integer
$showThousands boolean
리턴 string

nReal() 공개 정적인 메소드

Mostra o Valor no real Formatado
public static nReal ( float $number, integer $decimals = 2, boolean $symbol = true, boolean $fixed = true ) : string
$number float
$decimals integer
$symbol boolean
$fixed boolean
리턴 string

nRealExtenso() 공개 정적인 메소드

Mostra um numero por extenso.
public static nRealExtenso ( $value, $uppercase ) : string
$value
$uppercase 1 - UPPER; 2 - Upper; false - tudo minusculo;
리턴 string

normalizeChars() 공개 정적인 메소드

Função para limpar acentos de uma string
public static normalizeChars ( string $string ) : string
$string string
리턴 string

notLetters() 공개 정적인 메소드

Retorna somente as letras da string
public static notLetters ( String $string ) : String
$string String
리턴 String

notNumbers() 공개 정적인 메소드

Retorna somente os digitos da string
public static notNumbers ( String $string ) : String
$string String
리턴 String

numberFormatConvenio() 공개 정적인 메소드

public static numberFormatConvenio ( $n, $loop, $insert ) : string
$n
$loop
$insert
리턴 string

numberFormatConvenio() 공개 정적인 메소드

public static numberFormatConvenio ( $n, integer $loop, $insert ) : string
$n
$loop integer
$insert
리턴 string

numberFormatGeral() 공개 정적인 메소드

public static numberFormatGeral ( $n, $loop, $insert ) : string
$n
$loop
$insert
리턴 string

numberFormatGeral() 공개 정적인 메소드

public static numberFormatGeral ( $n, integer $loop, $insert ) : string
$n
$loop integer
$insert
리턴 string

numberFormatValue() 공개 정적인 메소드

public static numberFormatValue ( $n, $loop, $insert ) : string
$n
$loop
$insert
리턴 string

numberFormatValue() 공개 정적인 메소드

public static numberFormatValue ( string $n, integer $loop, integer $insert ) : string
$n string
$loop integer
$insert integer
리턴 string

numbersNot() 공개 정적인 메소드

Retorna somente os digitos da string
public static numbersNot ( String $string ) : String
$string String
리턴 String

numbersOnly() 공개 정적인 메소드

Retorna somente os digitos da string
public static numbersOnly ( String $string ) : String
$string String
리턴 String

onlyAlphanumber() 공개 정적인 메소드

Retorna somente alfanumericos
public static onlyAlphanumber ( String $string ) : String
$string String
리턴 String

onlyLetters() 공개 정적인 메소드

Retorna somente as letras da string
public static onlyLetters ( String $string ) : String
$string String
리턴 String

onlyNumbers() 공개 정적인 메소드

Retorna somente os digitos da string
public static onlyNumbers ( String $string ) : String
$string String
리턴 String

percent() 공개 정적인 메소드

Return percentage of value;
public static percent ( $big, $percent ) : string
$big
$percent
리턴 string

percentOf() 공개 정적인 메소드

Return percent x of y;
public static percentOf ( $big, $small, integer $defaultOnZero ) : string
$big
$small
$defaultOnZero integer
리턴 string

remove() 공개 정적인 메소드

Remove trecho do array.
public static remove ( $i, $f, &$array ) : string
$i
$f
$array
리턴 string

upFirst() 공개 정적인 메소드

Retorna a String em minusculo
public static upFirst ( String $string ) : String
$string String
리턴 String

upper() 공개 정적인 메소드

Retorna a String em MAIUSCULO
public static upper ( String $string ) : String
$string String
리턴 String

프로퍼티 상세

$bancos 공개적으로 정적으로 프로퍼티

public static $bancos