efrane/tinkr 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

efrane/tinkr

最新稳定版本:v0.5.4

Composer 安装命令:

composer create-project efrane/tinkr

包简介

A tinkering tool for PHP

README 文档

README

tinkr is a testbed console thing for PHP. one day I will come up with a better explanation. for now, just know that you can do this:

$ tinkr erusev/parsedown
Preparing tinkr v0.5.0...
Loading composer repositories with package information
Installing dependencies (including require-dev)
  - Installing erusev/parsedown (1.5.3)
    Loading from cache

Writing lock file
Generating autoload files
Psy Shell v0.5.2 (PHP 5.6.9 — cli) by Justin Hileman
>>> (new Parsedown)->parse("Hello tinkr.")
=> "<p>Hello tinkr.</p>"
>>> exit
Exit:  Goodbye.
Cleaning up temporary tinkr environment...

Usage

$ tinkr [--path=PATH|--use-current-dir] [PACKAGE_1] [PACKAGE_N]

If called without any arguments, tinkr essentially behaves like it's underlying PsySh, with the exception that you end up in a sandboxed environment. But of course, the actual benefit of tinkr is passing composer package names for quickly testing them without having to manually require-write-script-run the test.

Export

Tinkr sessions are by default temporary because they are just meant for quick testing without all the hassle of composer require and autoloading and stuff. If you need the things saved, it's possible to export a session to a permanent location by calling the export command in the session. This will write the session to a sub-directory your current dir. If you want a specific storage path, you can pass that as an argument, e.g. export ~/my_tinkr_session.

Exported sessions will not be overridden unless you run the command as export --force.

In the future, tinkr will try to generate a PHP script from the command history, for now, the export just contains the bare environment, which, however, allows for reopening in tinkr with $ tinkr --path your-exported-tinkr-session.

Installation

via composer:

$ composer global require efrane/tinkr

Don't forget to add your .composer/vendor/bin to your $PATH

License: MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固