Search by

idm-io / math-scripts-handler

fdemiramon

Symfony2 bundle to push an retrieve statistical datas with other languages (R and Python)

This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.

Package info

github.com/idm-io/MathScriptsBundle

Homepage

Type:symfony-bundle

pkg:composer/idm-io/math-scripts-handler

Statistics

Installs: 143

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.2 2015-11-30 20:17 UTC

This package is not auto-updated.

Last update: 2019-12-27 15:19:49 UTC


README

About

Handles and abstract data exchanges between PHP and R or Python. For testing purpose, the PHP is also available as a "mathematical" language but not encouraged

Installation

Add this to your composer.json file:

"require": {
	"idm-io/math-scripts-handler": "dev-master",
}

Add the bundle to app/AppKernel.php

$bundles = array(
	// ... other bundles
	new Idm\MathScriptsBundle\IdmMathScriptsBundle(),
);

Configuration

Add this to your config.yml:

math_scripts:
    runtime_folder: ~ # Default value: /tmp
    languages:
        R:
            bin_full_path: Rscript # Ommit location if path is set in env vars
            extension: R
            wrapper: ~ # Default value: IdmMathScriptsBundle/Wrapper/wrapper
        Python:
            bin_full_path: python # Ommit location if path is set in env vars
            extension: py
            wrapper: ~ # Default value: IdmMathScriptsBundle/Wrapper/wrapper
        OtherLanguage:
            bin_full_path: /bin/otherLanguageBinary
            extension: ol
            wrapper: ~ # Default value: AcmeBundle/MyWrappers/wrapperForOtherLanguage
    is_debug: ~ # Default value: false

Data Exchange Specification