Giter Site home page Giter Site logo

sii_chile's Introduction

SII Chile

Port de la gema Sii Chile

Instalación

composer require rodrigore/siichile

Uso (Vanilla PHP)

require 'vendor/autoload.php';

$consulta = new Rodrigore\SIIChile\Consulta('76.170.582-2');
var_dump($consulta->sii());

Salida

Una vez exitosa la petición, se retorna un arreglo asociativo con 2 propiedades:

  • razonSocial: Es un string que contiene la razon social.

  • actividades: Es un arreglo que contiene todas las actividades asociadas al rut, las cuales a su vez contienen las claves giro, codigo, categoria, afecta.

Output

Formatos del RUT

Los formatos validos para el rut pueden venir con puntos o sin estos, aunque es necesario que venga el guion que separa el digito verificador.

Ejemplo de rut valido:

  • 76.170.582-2
  • 76170582-2

Dependencias

Tests

composer install --dev
./vendor/bin/phpunit

sii_chile's People

Contributors

rodrigore avatar

Stargazers

Ricardo Inostoza Rebolledo avatar Marcos Matamala Fernández avatar Rodrigo Benavente A. avatar  avatar Simon Fernandez-Prada Paz avatar Daniel Nuñez S. avatar Rodrigo Sepúlveda Heerwagen avatar Benito Gutierrez avatar Josefina Araya avatar Juan Pablo avatar Alvaro Alvarez avatar

Watchers

 avatar Marcos Matamala Fernández avatar James Cloos avatar  avatar Ricardo Inostoza Rebolledo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.