Download the PHP package intanode/ug-locale without Composer

On this page you can find all versions of the php package intanode/ug-locale. 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 ug-locale

UG Locale

UG Locale is a Laravel package that provides a comprehensive set of resources to manage Ugandan location data (regions, districts, counties, sub-counties, parishes, and villages). This package includes configuration options, database migrations, and routes for a fully featured locale management system.

Table of Contents

Installation

Install the package via Composer:

Configuration

After installing the package, you need to publish the configuration file. This file allows you to adjust various settings, such as the batch size for seeding records. The default value works perfectly for most applications, but you can modify it to suit your needs.

Publishing Package Assets

Configuration File

Run the following Artisan command to publish the configuration file:

Once published, you can find the configuration file (typically config/ugLocale.php). Open it to adjust the batch size for seeding the location records if necessary.

Publishing Other Assets

The package provides several assets that you need to publish into your Laravel application. Use the following commands:

Migrations

Publish the migration files that create the necessary tables for the location data:

Routes

Publish the routes file that gives you access to the locale resources:

After publishing, the routes file (e.g., ugLocaleRoutes.php) will be available in your project. Usage

Adding the Routes to Your Application

To make the published routes available, you must include the routes file in your application's routes. Open your web.php file (usually located in the routes folder) and add the following line at the bottom:

Installing Location Data

After you have published the migrations and configuration, run the following command to migrate and seed the location tables:

This command will execute the migrations and populate the tables with the location data.

Routes Overview

Once installed, the package provides the following routes to interact with the locale resources:

GET Routes

POST Routes

Additional Documentation

For more detailed information about each component of the package, please refer to the following sections:

Configuration Options:

Check out the config/ugLocale.php file for available settings, including the batch size for seeding.

Database Migrations:

Review the migration files published under your migrations directory for the table schema details.

Controllers and Routes:

The LocationController contains the logic for handling requests. The routes file (ugLocaleRoutes.php) documents the available endpoints.

Commands:

The Artisan command locale:install will automatically run your migrations and seed the database with initial location data.

License

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

With these instructions, your Laravel application is now ready to manage Ugandan location data using the UG Locale package. Enjoy seamless integration and extended locale functionality!


All versions of ug-locale with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1|^8.2
dedoc/scramble Version ^0.12.5
illuminate/support Version ^10.0|^11.0
illuminate/database Version ^10.0|^11.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 intanode/ug-locale contains the following files

Loading the files please wait ...