Download the PHP package ferdirn/laravel-id-provinces without Composer

On this page you can find all versions of the php package ferdirn/laravel-id-provinces. 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 laravel-id-provinces

Laravel ID Provinces

Total Downloads Latest Stable Version Latest Unstable Version

Laravel ID Provinces is a package for Laravel to supply all provinces data in Indonesia to table provinces including province name, country code, capital, and area in square km. Start from data provinces in Indonesia.

If you need Laravel package to provide all Countries data for you, then you may want to install ferdirn/laravel-id-countries package.

Installation

Add ferdirn/laravel-id-provinces to composer.json.

"ferdirn/laravel-id-provinces": "dev-master"

or in console type command

composer require ferdirn/laravel-id-provinces:dev-master

Run composer update to pull down the latest version of laravel packages.

Edit app/config/app.php file and add to providers

'providers' => array(
    'Ferdirn\Provinces\ProvincesServiceProvider',
)

also add to 'aliases'

'aliases' => array(
    'Provinces' => 'Ferdirn\Provinces\ProvincesFacade',
)

Model

If you want to edit the configuration then publish the config. This is an optional step and unrecommended to do, it will show the table name and you do not need to alter it if you do not know what you are doing. The default table name is provinces, if it suits you, leave it. But if you know what you are doing, you can run the following command

$ php artisan config:publish ferdirn/laravel-id-provinces

Then you need to generate the migration file. Run the following command:

$ php artisan provinces:migration

This process will generate <timestamp>_create_provinces_table.php migration file and a ProvincesSeeder.php seed file.

Insert the following code in the seeds/DatabaseSeeder.php

//Seed the provinces
$this->call('ProvincesSeeder');
$this->command->info('Seeded the provinces!');

Finally, you can run the artisan migrate command with seed option to include the seed data:

$ php artisan migrate --seed

Now you have a table 'provinces' with all provinces data inside the table. Congratulation!


All versions of laravel-id-provinces with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.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 ferdirn/laravel-id-provinces contains the following files

Loading the files please wait ....