eschmar / laravel-table-dictionary
There is no license information available for the latest version (0.1.0) of this package.
Generate a dictionary of possible values for a database column to scale your data set.
Package info
github.com/eschmar/laravel-table-dictionary
Type:laravel
pkg:composer/eschmar/laravel-table-dictionary
0.1.0
2018-06-11 13:28 UTC
Requires
- php: >=7.0
- laravel/framework: 5.*
This package is auto-updated.
Last update: 2026-03-11 23:42:44 UTC
README
Introduces the TableDictionary data structure, which is capable of extracting a statistical distribution of your database column contents. This distribution can be used to generate more of the same content, utilizing a lottery ticket system. Exposes the TableDictionaryService with static functions to generate the TableDictionary data structure for your current database tables and importing them within another environment.
Usage
// Sample usage $dict = new TableDictionary("table_name"); $dict->generate("attribute_name"); // Persist dictionary TableDictionaryService::writeDictionary($dict); // Retrieve dictionary TableDictionaryService::writeDictionary($dict); $dict = TableDictionaryService::getDictionary("table_name");