I have some collection of static arrays, that I need to use somewhere in my app - that are hundreds names, families, countries, that I`m using to generate some random data, or display in a view, or use in model for other needs. I`m not sure where to store these arrays. First I make a custom config file and put them there, but I don`t think is it the right place. Now, I`m using library class, but Im not sure that i propose of libraries.
PHP Code:
class Storage {
private $someArray = [...];
private $anotherArray = [...];
private $thirdArray = [...];
public function getArray($type)
{
$array = $this->{$type};
return $array;
}
}