2017 © Pedro Peláez
 

library laraworld

Countries, Languages and Time Zones Package for Laravel 5.*

image

ernysans/laraworld

Countries, Languages and Time Zones Package for Laravel 5.*

  • Monday, December 18, 2017
  • by ernysans
  • Repository
  • 4 Watchers
  • 9 Stars
  • 1,860 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 4 Versions
  • 94 % Grown

The README.md

Build Status Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Laraworld

Countries, Languages and Time Zones Package for Laravel and Lumen 5.*, (*2)

Please check the Known Issues section before reporting a new one., (*3)

ScreenShot, (*4)

Installation

This package can be installed through Composer., (*5)

$ composer require ernysans/laraworld

When using Laravel there is a service provider that you can make use of., (*6)

// app/config/app.php

'providers' => [
    '...',
    ErnySans\Laraworld\LaraworldServiceProvider::class,
];

Configure the aliases to make use of the Facades., (*7)

// app/config/app.php

'aliases' => [
    '...',
    'Countries' => ErnySans\Laraworld\Facades\Countries::class,
    'TimeZones' => ErnySans\Laraworld\Facades\TimeZones::class,
    'Languages' => ErnySans\Laraworld\Facades\Languages::class,
];

If you are using Laravel 5.5 it's not required to manually add the service provider and aliases., (*8)

Publish Migrations and Seeds., (*9)

$ php artisan vendor:publish --provider="ErnySans\Laraworld\LaraworldServiceProvider"

Prepare Seeds., (*10)

// database/seeds/DatabaseSeeder.php

class DatabaseSeeder extends Seeder
{

    public function run()
    {
        // Seed the countries
        $this->call(CountriesTableSeeder::class);

        // Seed the Time Zones
        $this->call(TimeZonesTableSeeder::class);

        // Seed the Languages
        $this->call(LanguagesTableSeeder::class);
    }
}

Run Migrations and Seed the tables, (*11)

$ php artisan migrate
$ php artisan db:seed

Use

These methods are provided:, (*12)

Collection Methods

When using Laravel you can work with the Collection Available Methods., (*13)

JSON file (Optional)

Use this methods If you want to get all the data from the JSON file:, (*14)

  • Countries::allJSON(): Get all the countries from the JSON file.
  • Languages::allJSON(): Get all the languages from the JSON file.
  • TimeZones::allJSON(): Get all the time zones from the JSON file.

Contributing

Thank you for considering contributing to the Laraworld package!. Remember to run PHPUnit tests before sending a new pull request., (*15)

License

This package is open-sourced licensed under the MIT license., (*16)

The Versions

18/12 2017

dev-master

9999999-dev https://github.com/ernysans/laraworld

Countries, Languages and Time Zones Package for Laravel 5.*

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

laravel migrations php json lumen time languages seed timezone country countries

18/12 2017

v1.0.2

1.0.2.0 https://github.com/ernysans/laraworld

Countries, Languages and Time Zones Package for Laravel 5.*

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

laravel migrations php json lumen time languages seed timezone country countries

07/05 2017

v1.0.1

1.0.1.0 https://github.com/ernysans/laraworld

Countries, Languages and Time Zones Package for Laravel 5.*

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

laravel migrations php json lumen time languages seed timezone country countries

21/04 2016

v1.0.0

1.0.0.0 https://github.com/ernysans/laraworld

Countries, Languages and Time Zones Package for Laravel 5.*

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

laravel migrations php json lumen time languages seed timezone country countries