Appearance
Reference
33 classes, interfaces, traits and enums, read from src/.
- CsvRows: Reads the rows of a CSV file with a header, and checks them against what the manifest announces.
- Dataset: Reads the data files shipped with the package, without any framework.
- DatasetException: The data of the package cannot be read, or does not match what its manifest announces.
- JsonFile: Reads a file of the data, without silencing the errors of PHP.
- Loader: Loads the data into a database, whatever the framework.
- LoadReport: What a load did, table by table.
- ManifestReader: Reads the manifest of the data files: the date of the export, the versions of the sources, and the columns and the number of rows of each table.
- RowCaster: Gives the values of a row the type their column has, so that every database receives numbers as numbers.
- RowWriter: What the loader needs from a database layer. Each adapter (Eloquent, Doctrine) provides one.
- SchemaReader: Reads the Table Schema of a table.
- LoadCommand
- EloquentRowWriter: Writes the rows of the loader with the query builder of Laravel: one statement per block of rows, on any database Laravel supports (MySQL, MariaDB, PostgreSQL, SQLite, SQL Server).
- FrenchPostalCodeServiceProvider
- City: A postal entry: a commune and one of its postal codes, with its own GPS point, for example "37200 Tours". It is the row to reference by a foreign key: its identifier is stable and never reused.
- Commune: A commune, or a municipal arrondissement. A commune that was merged or renamed stays, with a
valid_todate. - CommuneSuccession: The link between an INSEE commune code and the code that follows it at a given date. It has no foreign key: codes can be reused, so a succession is found by code and date.
- UsesFrenchPostalCodeTable: What the models of the package share: the table and the connection come from the configuration, the identifier comes from the data, and a row is valid until its
valid_todate. - Department: A department, or an overseas collectivity (which has no region).
- Region: A French region.
- LoadCommand
- DbalRowWriter: Writes the rows of the loader with DBAL: one statement per block of rows.
- TablePrefixListener: Puts the prefix of the configuration in front of the name of the tables of the package.
- City
- Commune
- CommuneSuccession
- Department
- Region
- FrenchPostalCodeBundle: The regions, departments, communes and postal codes of France, as Doctrine entities and a command that loads them.
- CityRepository
- CommuneRepository
- DepartmentRepository
- RegionRepository
- ValidityRepository: The repositories of the entities that have a period of validity.