承接 sarfraznawaz2005/phexecute 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

sarfraznawaz2005/phexecute

Composer 安装命令:

composer create-project sarfraznawaz2005/phexecute

包简介

Phexecute is PHP code runner

关键字:

README 文档

README

Phexecute is browser-based tool to quickly test/run PHP code. It comes with ability to easily check your code with PHP Code_Sniffer, run PHPUnit tests and more, all inside the browser. Phexecute can dramatically improve development time when something needs to be tested. Extending Phexecute to add your own packages/modules is also extremely easy.

Features

  • PHP Code_Sniffer to easily identify and fix problematic parts of code (through PSR-2)
  • Run PHPUnit tests and see results right inside browser
  • Uses Symfony VarDumper component easy visualization of vars, arrays, objects
  • Ability to save unlimited snippets
  • Live PHP error highlighting
  • Easy to extend

Screenshots

Main Screen

Main Window

PHP Code_Sniffer Results

CodeSniffer Window

PHPUnit Results

PHPUnit Window

Requirements

Installation

You can download it directly OR install via composer:

composer create-project -n -s dev sarfraznawaz2005/phexecute

Using Composer Packages inside Phexecute

Any packages that you install via composer are automatically available inside Phexecute. For example, dump function comes from symfony/var-dumper package specified in composer.json file and we can use it directly inside Phexecute like dump($var). So any packages specified in composer.json file are available for you to use them directly inside Phexecute code editor. This essentially means you can extend Phexecute to any level you want by adding your packages and use them in Phexecute code editor.

Adding Custom Packages

Adding your own packages is extremely simple so much so that you don't need to write single line of PHP code.

By default, Phexecute has three menu items System, Packages and Snippets. They come from pure text files that can be found in storage\data folder respectively. Should you need to add your own menu entry, simply create a text file in any of those three directories and it will auto-magically appear in Phexecute menu.

The format for a text file is:

EntryName (This name will appear in corresponding menu)

---

PHP Code (The actual php code to run when menu entry is clicked)

---

true OR false (whether or not to run code automatically)

For example here is how phpinfo entry is defined (in storage/data/system/01-phpinfo.txt):

phpinfo

---

phpinfo();

---

true

Note: Please notice that extensions of those files should be .txt although you can name these files anything.

You can extend Phexecute to any level you want. For example, you can use it to create automation commands, deploy scripts, run git commands, etc.

Please checkout text files in directories under storage\data to get an idea of how default menu entries are defined.

CAUTION: Phexecute uses eval to run the code. It is strongly recommended that you should use it for local testing only and not on production server due to security reasons. If you do, you use it on your own risk.

Contribute

Please feel free to fork and modify/extend Phexecute and send a pull request with your changes! To establish a consistent code quality, please check your code using PHP_CodeSniffer. If you find any bug, error or issue, please report it at issue tracker.

Donation?##

In order to donate, please go to this page and proceed with your donation information. Thanks!

License

The MIT License (MIT)

Copyright (c) 2015 Sarfraz Ahmed and Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

sarfraznawaz2005/phexecute 适用场景与选型建议

sarfraznawaz2005/phexecute 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 32 次下载、GitHub Stars 达 18, 最近一次更新时间为 2015 年 05 月 24 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「php」 「code」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 sarfraznawaz2005/phexecute 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 sarfraznawaz2005/phexecute 我们能提供哪些服务?
定制开发 / 二次开发

基于 sarfraznawaz2005/phexecute 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 18
  • Watchers: 1
  • Forks: 2
  • 开发语言: CSS

其他信息

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