定制 tonius/python 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tonius/python

Composer 安装命令:

composer require tonius/python

包简介

Tonius | Python :: A package that provides flexibility and built to smooth-run simple and complex python scripts inside PHP and Laravel projects.

README 文档

README

================================================================================

Version Build Status Total Downloads StyleCI License Monthly Downloads composer.lock

Tonius Python :: A package built to smooth-run simple and complex python scripts inside PHP and Laravel projects. This is very useful when we need to perform system based operations and at the same time want to use the result in out PHP Applications. Credits to Symfony Foundation.

Installation

Via Composer

$ composer require tonius/python

Usage

You must have python installed.

use tonius\python\Facades\Python;
$response = Python::run($fileName);

Available options;

$options = [
    'test' => true, // To run a default test script if filename is not passes
    'output' => 'json', // Output types : json, file, raw. it's raw by default
    'fileName' => 'example.json' // .txt, php, e.t.c If you specify output to be file, you must pass the name of file to dump the output
];

Run Example script

use tonius\python\Facades\Python;
$response = Python::run(null, ['test' => true ]);

Change log

Please see the changelog for more information on what has changed recently.

Testing

$ ./vendor/bin/phpunit

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email olubunmivictor6@gmail.com instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-05-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固