10 Commits

Author SHA1 Message Date
Peter Kokot
fb5d59dfca Bump composer dependencies and upgrade PHPUnit to 7.5 2019-01-05 13:04:57 +01:00
Peter Kokot
d9a602e2b5 Add Extractor utility
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.
2018-12-06 15:52:22 +01:00
Peter Kokot
ff6b7b36d6 Bump Composer dependencies
Upgrades using `composer update`:
- Symfony Console 4.2.0
- Symfony Dotenv 4.2.0
- Dependencies upgraded to latest stable versions
2018-12-02 12:39:49 +01:00
Peter Kokot
5a74283bb2 Add data fixtures CLI command
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.
2018-11-22 19:33:37 +01:00
Peter Kokot
8d0b4db8b8 Remove ext/mysql/mysqli dependency 2018-11-20 05:18:27 +01:00
Peter Kokot
3db24e897d Add classmap to composer.json 2018-11-15 05:44:25 +01:00
Peter Kokot
254e82c393 Refactor PEAR_UPLOAD_TMPDIR
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.
2018-11-12 05:29:42 +01:00
Peter Kokot
5d7d447d17 Add environment dependent configuration
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.
2018-11-12 00:22:52 +01:00
Peter Kokot
fbbba3b774 Refactor make_utc_date() into a DateFormat class
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.
2018-11-04 00:03:22 +01:00
Peter Kokot
373e1ad8c9 Add initial Composer schema
This patch adds an initial Composer file for managing dependencies in
development and production environment in the future.
2018-11-01 22:17:25 +01:00