Download the PHP package gfarias/laravel-previ-scraper without Composer

On this page you can find all versions of the php package gfarias/laravel-previ-scraper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-previ-scraper

Laravel PreviScraper

Indicadores previsionales Chile 🇨🇱

Codacy Badge tests codecov CodeFactor StyleCI

Indicadores previsionales desde Previred y tramos de impuesto desde SII

Los datos se obtienen utilizando web scraping (Previred - Sii)

Instalación

Corre el siguiente comando en la terminal:

Cómo se usa

Puedes utilizar el provider e inyectarlo directo en los métodos ejecutados por el framework:

o instanciar directamente PreviScraper :

Sii - Impuesto segunda categoría

Soporta desde el año 2013+

método retorno
getTramosMensuales() array
getTramosQuincenales() array
getTramosSemanales() array
getTramosDiarios() array
all() array

Cada método entrega un arreglo con el conjunto de tramos disponibles en SII, a su vez, cada tramo contiene los siguientes datos:

nombre tipo de dato descripción
periodo string [mensual,quincenal, semanal, diario]
desde float renta mínima del tramo
hasta float renta tope del tramo
factor float factor de cálculo
descuento float Cantidad a rebajar
impuesto float Tasa de Impuesto Efectiva, máxima por cada tramo de Renta

En resumen, es una fiel representación de la web de SII

image

Ejemplos de uso

Obtener indicadores mensuales del periodo Enero 2021

El output de estos indicadores sería:

Previred

Por ahora solo soporta el periodo actual en el sitio de previred, una buena implementación sería un lector PDF para obtener datos de períodos anteriores

método retorno
getUF() float
getUTM() float
getRentaTopeImponibleAfp() float
getRentaTopeImponibleIps() float
getRentaTopeImponibleCesantia() float
getRentaMinimaImponibleDependiente() float
getRentaMinimaImponibleMenores() float
getRentaMinimaImponibleParticulares() float
getSeguroCesantia() \Gfarias\PreviScraper\CesantiaSupport
getTopeApvMensual() float
getTopeAPVAnual() float
getAfpCapital() \Gfarias\PreviScraper\AfpSupport
getAfpCuprum() \Gfarias\PreviScraper\AfpSupport
getAfpHabitat() \Gfarias\PreviScraper\AfpSupport
getAfpPlanVital() \Gfarias\PreviScraper\AfpSupport
getAfpProVida() \Gfarias\PreviScraper\AfpSupport
getAfpModelo() \Gfarias\PreviScraper\AfpSupport
getAfpUno() \Gfarias\PreviScraper\AfpSupport
getAsignacionTramoAMonto() float
getAsignacionTramoBMonto() float
getAsignacionTramoCMonto() float
getAsignacionTramoA() float
getAsignacionTramoB() float
getAsignacionTramoC() float
getAsignacionTramoD() float
all() array

CesantiaSupport Datos específicos del seguro de cesantía

método retorno
getIndefinidoEmpleador() float
getIndefinidoTrabajador() float
getPlazoFijoEmpleador() float
getIndefinidoSobre11Empleador() float
getCasaParticularEmpleador() float
toArray() array

AfpSupport Datos específicos de cada AFP

método retorno
getNombre() string
getCodigo() string
getPorcentajeDependiente() float
getPorcentajeSis() float
getPorcentajeIndependiente() float
toArray() array

Ejemplo de uso

❤️


All versions of laravel-previ-scraper with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
weidner/goutte Version ^2.1
illuminate/support Version ^7.0|^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gfarias/laravel-previ-scraper contains the following files

Loading the files please wait ....