idm-io/math-scripts-handler

Symfony2 扩展,用于推送和检索与 R 和 Python 等其他语言的数据

该包的官方仓库似乎已不存在,因此该包已被冻结

安装: 143

依赖: 0

建议者: 0

安全: 0

星星: 0

关注者: 2

分支: 0

开放问题: 0

类型:symfony-bundle

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

This package is not auto-updated.

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


README

关于

处理 PHP 和 R 或 Python 之间的数据和抽象数据交换。出于测试目的,PHP 也可用作“数学”语言,但并不推荐

安装

将以下内容添加到您的 composer.json 文件中

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

将扩展添加到 app/AppKernel.php

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

配置

将以下内容添加到您的 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

数据交换规范