Download the PHP package kattatzu/sbif without Composer
On this page you can find all versions of the php package kattatzu/sbif. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kattatzu/sbif
More information about kattatzu/sbif
Files in kattatzu/sbif
Informations about the package sbif
SBIF API
Libreria que permite consultar el valor de indicadores al API de la superintendencia de bancos e instituciones financieras (SBIF) de Chile. Pueden acceder a los siguientes indicadores:
- Dólar
- Euro
- UF
- UTM
- IPC
Además se puede acceder a información de bancos de Chile.
Obtener API key
Para usar el API de la SBIF debes obtener tu APIKEY en la siguiente página: http://api.sbif.cl/api/contactanos.jsp
Instalación
Para instalar la librería ejecuta el siguiente comando en la consola:
Instalación y Uso en Laravel
Uso de forma Standalone
Si tu sistema no trabaja con Laravel puedes usarlo de forma directa:
Indicadores disponibles
También puedes consultar de forma dinámica
Constantes disponibles
Puedes acceder al resto de los datos que disponibiliza la SBIF (http://api.sbif.cl/que-es-api.html) enviando directamente el endpoint que corresponda:
Información de Bancos
Puedes consultar la información que disponibiliza la SBIF sobre los bancos de Chile.
Puedes obtener la información como un array:
Para obtener el listado de códigos puedes usar la clase Institution:
Instalación y Uso en Laravel
Después de hacer la instalación con Composer debes registrar el ServiceProvider y el alias en tu archivo config/app.php:
Publica el archivo de configuración ejecutando en Artisan:
Ya puedes ingresar tu API Key en el archivo de configuración config/sbif.php o en en archivo .env con la key SBIF_API_KEY.
Facades
Ya puedes usar el Facade para acceder de forma rápida a las funciones:
Helpers
También puedes utilizar los helpers:
No dudes en enviarme tus feedbacks o pull-request para mejorar esta librería.
Licencia
MIT License
Copyright (c) 2017 José Eduardo Ríos
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.