This patch adds extractor service class for retrieving file contents
from the tar gzip archives (tgz). Instead of a pure PHP implementation
Archive_Tar PEAR package it uses Phar and zlib extensions to retrieve
contents from the phar stream.
This patch adds ability to insert data fixtures in the development
environment using new console script via Symfony Console component
and Faker library which generates demo data for localhost development
environments.
This patch refactors the PEAR_UPLOAD_TMPDIR constant into a
configuration setting based on the app environment. The newly
introduced var directory is added for similar future application
temporary generated files.
This patch adds environment dependent configuration. When in development
environment, the `composer install` step copies the `.env` file from the
`.env.dist` file. This approach allows following the "The Twelve-Factor App"
methodology of building web applications.
The .env files with environment variables are processed in development
environment with the Symfony Dotenv component. When in production
environment, the .env files are not used but are for now overridden via
the `config/app_prod.php` file since the production environment is less
configurable and adaptable to changes. Changing future configuration
approach is with this way prepared for using environment variables in
production if needed in the future.
This patch formats the function make_utc_date() helper into a dedicated
utility class DateFormat with added PHPUnit test. Application ini
configuration for date.timezone has been set to UTC.