Looking to hire Laravel developers? Try LaraJobs

laravel-ubigeo maintained by holacliente

Author
Last update
2025/04/16 20:56 (dev-master)
License
Links
Downloads
120

Comments
comments powered by Disqus

Laravel Ubigeo

Laravel Ubigeo is a package that provides a simple way to manage and use Peruvian ubigeo codes in your Laravel application.

Installation

Install the package via Composer:

composer require holacliente/laravel-ubigeo

Usage

Retrieve Ubigeo Information

You can use the provided models or helper functions to retrieve ubigeo data:

use Holacliente\LaravelUbigeo\Ubigeo;

// Get all departments
$departments = Ubigeo::departamentos();

// Get provinces by department
$provinces = Ubigeo::provincias();

// Get districts by province
$districts = Ubigeo::distritos();

Testing

Run the tests with:

php artisan test

Contributing

Contributions are welcome! Please submit a pull request or open an issue to discuss your ideas.

License

This package is open-sourced software licensed under the MIT license.