Download the PHP package wafto/laravel-sepomex without Composer
On this page you can find all versions of the php package wafto/laravel-sepomex. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-sepomex
Laravel Sepomex
Introduction
This package provides postal code SEPOMEX information (unofficial) for Laravel.
Installation
You can install this package by running:
Setup
In order to setup this package, the next steps are needed.
1) Configuration file
Publish the sepomex.php
configuration file under app/config
using the following command:
Here the configuration like table_name
and source_file
can be changed.
3) Source file
Download and copy file datos.gob.mx in
the storage
directory as cpdescarga.txt
, note that this path should match with the config file.
4) Migrate and Import
After configuring the file path and table name, run migrations and run the importer command.
This step might took some time to finish.
Usage
Only inject the contract Wafto\Sepomex\Contracts\SepomexContract
or use
app(Wafto\Sepomex\Contracts\SepomexContract::class)
to get the singleton instance.
The second option is to use the Sepomex Facade by editing the config/app.php
by adding the alias.
And using anywhere in your application.
Important Notes
The database is distributed with a restrictive clause on the first line of the file.
El Catálogo Nacional de Códigos Postales, es elaborado por Correos de México y se proporciona en forma gratuita para uso particular, no estando permitida su comercialización, total o parcial, ni su distribución a terceros bajo ningún concepto.
But the database has been released under the license LIBRE USO MX so hopefully in the future the clause in the file change.
Source (Fuente)
"Catálogo Nacional de Códigos Postales" publicado por Correos de México. Consultado en https://datos.gob.mx/busca/dataset/catalogo-nacional-de-codigos-postales el 2017-11-06.
License
Laravel Sepomex is open-sourced software licensed under the MIT license.
All versions of laravel-sepomex with dependencies
ext-json Version *
illuminate/database Version ^10.0|^11.0
illuminate/http Version ^10.0|^11.0
illuminate/support Version ^10.0|^11.0