Download the PHP package eureka2/g6k without Composer

On this page you can find all versions of the php package eureka2/g6k. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package g6k

G6K

SymfonyInsight Total Downloads

G6K is a tool that enables the creation and online publishing of calculation simulators without coding. It has a simulation engine and an administration module.

A calculation simulator is an online service made available to a user to enable them to calculate the results (taxes, social benefits, etc.) corresponding to their particular situation. The results are calculated on the basis of data supplied by the user, reference data (eg amount of a tax) and business rules reflecting the current legislation in the field of simulation.

Learn more

Table of contents

  1. Prerequisites for Symfony
  2. Prerequisites for G6K
  3. Installation
  4. Web server configuration
  5. Migration
  6. Documentation
  7. Code quality
  8. Innovation Award
  9. Copyright and license

Prerequisites for Symfony

Prerequisites for G6K

Installation

  1. If you plan to use MySQL or PostgreSQL, create a user with "CREATE DATABASE" and "CREATE TABLE" privileges using the administration tool of your RDBMS.
  2. Be placed in the Web Server
  3. Download composer.phar (https://getcomposer.org/download/) in . composer 1.7.2+ is required.
  4. Under a shell or DOS, execute: php -d memory_limit=-1 composer.phar create-project eureka2/g6k simulator/ 4.*
  5. Enter the parameter values required by the installer, including:
    • application environment [dev or prod] (prod) :
    • debug mode [0 or 1] (0) :
    • locale [en-GB, en-US, fr-FR, ...] (en-US) :
    • upload directory (%kernel.project_dir%/var/uploads) :
    • mailer URL (null://localhost) :
    • database engine [sqlite, mysql or pgsql] (sqlite) :
    • database name (g6k) :

for sqlite database only:

for mysql or pgsql database:

Web server configuration

Adding Rewrite Rules

G6K comes with a .htaccess file in the calcul/ directory that contains the rewrite rules.

/admin/... is rewritten in /admin.php/... and all other queries in /index.php/....

Thus, the admin.php andindex.php front-end controllers can be omitted from the request urls.

Apache

You must add the AllowOverride All directive in the VirtualHost block of the server configuration.

Assuming G6K is installed in the directory /var/www/html/simulator :

For best performance, rewrite rules can be moved from the .htaccess file to the VirtualHost block of the server configuration.

In this case, change AllowOverride All to AllowOverride None and delete the .htaccess file.

For security reasons, the can be set to the calcul/ directory : DocumentRoot /var/www/html/simulator/calcul

In this case, calcul/ should be omitted from the path of the request URL.

NGinx

Because NGinx does not have .htaccess files, all of the setup has to be managed within the server config file.

The following is fully working. There are probably a number of improvements which can be made, but this should be a good starting-point.

The most important point is that the /admin path has to be routed separately to the other app.

Migration

If you want to transfer simulators, their data sources and style sheets from a previous installation, do not copy them manually, use the following console command:

php bin/console g6k:simulator:copy -w abDatepicker -w abListbox -w AutoMoneyFormat all /var/www/html/simulator-old

assuming /var/www/html/simulator-old is the installation directory of the previous version.

This command performs all the necessary conversions to enable their use with this new version.

Note that in this command, the -w option sets widgets. abDatepicker, abListbox and AutoMoneyFormat are widgets that will automatically apply to 'date', choice (select), and money fields, respectively. You can omit those you do not want to use.

At the end of the copy, go to the administration interface to clear the development and production caches.

Documentation

Administrator's Guide

[ en ] [ fr ]

Classes

Documentation of G6K classes

Code quality

SymfonyInsight

Innovation Award

PHP Classes G6K By eureka2 PHP Programming Innovation award nominee
April 2018 Number 6
There are many sites that are useful because they provide means to let the users perform calculations of some kind from simple values entered in Web forms.
This package provides a Web interface to implement a generic system for designing and providing access to pages that provide several types of calculator tools.
Manuel Lemos

Copyright and license

© 2015-2019 Eureka2 - Jacques Archimède. Code released under the MIT license.

↑ back to table of contents


All versions of g6k with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
ext-ctype Version *
ext-iconv Version *
ashleydawson/simple-pagination Version 1.0.*
eureka2/acroforms Version ^1.0.6
flow/jsonpath Version ^0.4.0
mobiledetect/mobiledetectlib Version ^2.8
mpdf/mpdf Version ^8.0
sensio/framework-extra-bundle Version ^5.1
symfony/asset Version ^4.3.0
symfony/console Version ^4.3.0
symfony/expression-language Version ^4.3.0
symfony/flex Version ^1.1
symfony/framework-bundle Version ^4.3.0
symfony/lock Version ^4.3.0
symfony/monolog-bundle Version ^3.1
symfony/orm-pack Version *
symfony/process Version ^4.3.0
symfony/security-bundle Version ^4.3.0
symfony/serializer-pack Version *
symfony/swiftmailer-bundle Version ^3.1
symfony/twig-bundle Version ^4.3.0
symfony/validator Version ^4.3.0
symfony/web-link Version ^4.3.0
symfony/yaml Version ^4.3.0
willdurand/js-translation-bundle Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package eureka2/g6k contains the following files

Loading the files please wait ....