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 removes dependency of the deprecated HTTP_Upload PEAR package
and replaces it with a lighter version of a dedicated uploader service
class instead.
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 adds a dual autoloading mechanism for classes until further
refactorings will be possible using Composer's autoloader and full
PSR-4 support.
This patch adds a DSN string converter that can convert the already set
DSN database setting into an array and populates proper configuration
values. This is done to sync things with the production settings and to
gradually migrate the mysql_* mysqli_* elements to PDO.
This patch refactors the posttohost() function into a dedicated more
OOP-alike approach of using a new PhpMasterClient class with added unit
test.
For testing it uses a simple CLI server written and runnable via php
file.
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 refactors function make_image() into a class and adds a unit
test. Several unnecessary make_image() calls have been refactored into a
plain HTML instead since the size attributes are not needed on them
exactly.
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.