2017 © Pedro Peláez
 

library keylists

Laravel key/value lists package.

image

delatbabel/keylists

Laravel key/value lists package.

  • Tuesday, June 20, 2017
  • by delatbabel
  • Repository
  • 3 Watchers
  • 1 Stars
  • 684 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 25 Versions
  • 0 % Grown

The README.md

keylists

Yeah yeah, you know the drill. Your application needs to have all of these key/value tables. A list of states of the USA. A list of currencies. A table for timezones. A table for staff rotation types. A table for the names of the seven dwarfs (NAME THEM! NOW! QUICK!) (*). A key/value list for each of the 101 dropdowns that you have on the far-too-many forms on your site., (*1)

Keylists is a set of database tables and model classes to handle key/value lists in an application in a standard way, (*2)

So you can now store all of these key/value lists into a single set of tables and cache the whole lot and never have to panic about where to store these things ever again., (*3)

Installation

Add these lines to your composer.json file:, (*4)

    "require": {
        "delatbabel/keylists": "~1.0"
    },

Once that is done, run the composer update command:, (*5)

    composer update

Alternatively just run this:, (*6)

    composer require delatbabel/keylists

Register Service Provider

After composer update completes, add this line to your config/app.php file in the 'providers' array:, (*7)

    Delatbabel\Keylists\KeylistsServiceProvider::class,

Incorporate and Run the Migrations

Finally, incorporate and run the migration scripts to create the database tables as follows:, (*8)

php artisan vendor:publish --tag=migrations --force
php artisan migrate

Sample Data

To load some of the sample data, try adding this line to the $commands array in your app/Console/Kernel.php file:, (*9)

    \Delatbabel\Keylists\Console\Commands\LoadISO3166Countries::class

Then run this command:, (*10)

    php artisan keylists:loadiso3166countries

This should create entries in the keylists / keyvalues table for the ISO 3166 country codes and names., (*11)

Example

I'll get to that. Quit bugging me, K? Just go read the code., (*12)

Notes

(*) Happy, Dumpy, Sleepy, Gropey ... umm, hang on, was Gropey one of them?? ... Flopsy, Mopsy and Cottontail., (*13)

The Versions

20/06 2017

dev-master

9999999-dev

Laravel key/value lists package.

  Sources   Download

MIT

The Requires

 

by Del

laravel key value keyvalue keylists

13/12 2016

v1.5.4

1.5.4.0

Laravel key/value lists package.

  Sources   Download

MIT

The Requires

 

by Del

laravel key value keyvalue keylists

08/12 2016

v1.5.3

1.5.3.0

Laravel key/value lists package.

  Sources   Download

MIT

The Requires

 

by Del

laravel key value keyvalue keylists

28/11 2016

v1.5.2

1.5.2.0

Laravel key/value lists package.

  Sources   Download

MIT

The Requires

 

by Del

laravel key value keyvalue keylists

27/08 2016

dev-analysis-8nKQk5

dev-analysis-8nKQk5

Laravel key/value lists package.

  Sources   Download

MIT

The Requires

 

by Del

laravel key value keyvalue keylists

07/03 2016

v1.5.1

1.5.1.0

Laravel key/value lists package.

  Sources   Download

MIT

The Requires

 

by Del

laravel key value keyvalue keylists

15/12 2015

v1.5

1.5.0.0

Laravel key/value lists package.

  Sources   Download

MIT

The Requires

 

by Del

laravel key value keyvalue keylists

15/12 2015

v1.4.13

1.4.13.0

Laravel key/value lists package.

  Sources   Download

MIT

The Requires

 

by Del

laravel key value keyvalue keylists

15/12 2015

v1.4.12

1.4.12.0

Laravel key/value lists package.

  Sources   Download

MIT

The Requires

 

by Del

laravel key value keyvalue keylists

15/12 2015

v1.4.11

1.4.11.0

Laravel key/value lists package.

  Sources   Download

MIT

The Requires

 

by Del

laravel key value keyvalue keylists

15/12 2015

v1.4.10

1.4.10.0

Laravel key/value lists package.

  Sources   Download

MIT

The Requires

 

by Del

laravel key value keyvalue keylists

15/12 2015

v1.4.9

1.4.9.0

Laravel key/value lists package.

  Sources   Download

MIT

The Requires

 

by Del

laravel key value keyvalue keylists

15/12 2015

v1.4.8

1.4.8.0

Laravel key/value lists package.

  Sources   Download

MIT

The Requires

 

by Del

laravel key value keyvalue keylists

14/12 2015

v1.4.7

1.4.7.0

Laravel key/value lists package.

  Sources   Download

MIT

The Requires

 

by Del

laravel key value keyvalue keylists

14/12 2015

v1.4.6

1.4.6.0

Laravel key/value lists package.

  Sources   Download

MIT

The Requires

 

by Del

laravel key value keyvalue keylists

14/12 2015

v1.4.5

1.4.5.0

Laravel key/value lists package.

  Sources   Download

MIT

The Requires

 

by Del

laravel key value keyvalue keylists

14/12 2015

v1.4.4

1.4.4.0

Laravel key/value lists package.

  Sources   Download

MIT

The Requires

 

by Del

laravel key value keyvalue keylists

14/12 2015

v1.4.3

1.4.3.0

Laravel key/value lists package.

  Sources   Download

MIT

The Requires

 

by Del

laravel key value keyvalue keylists

14/12 2015

v1.4.2

1.4.2.0

Laravel key/value lists package.

  Sources   Download

MIT

The Requires

 

by Del

laravel key value keyvalue keylists

14/12 2015

v1.4.1

1.4.1.0

Laravel key/value lists package.

  Sources   Download

MIT

The Requires

 

by Del

laravel key value keyvalue keylists

14/12 2015

v1.4

1.4.0.0

Laravel key/value lists package.

  Sources   Download

MIT

The Requires

 

by Del

laravel key value keyvalue keylists

14/12 2015

v1.3

1.3.0.0

Laravel key/value lists package.

  Sources   Download

MIT

The Requires

 

by Del

laravel key value keyvalue keylists

14/12 2015

v1.2

1.2.0.0

Laravel key/value lists package.

  Sources   Download

MIT

The Requires

 

by Del

laravel key value keyvalue keylists

14/12 2015

v1.1

1.1.0.0

Laravel key/value lists package.

  Sources   Download

MIT

The Requires

 

by Del

laravel key value keylists

14/12 2015

v1.0

1.0.0.0

Laravel key/value lists package.

  Sources   Download

MIT

The Requires

 

by Del

laravel key value keylists