定制 futureplc/run-php 二次开发

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

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

futureplc/run-php

最新稳定版本:v1.0.1

Composer 安装命令:

composer require futureplc/run-php

包简介

A PHP command to run PHP.

README 文档

README

Important

"Run PHP" is superceded by cpx exec

Run PHP

Latest Version on Packagist Total Downloads

Run PHP is a single command to assist in executing PHP code in a file.

The intention is to make it easier to execute "scratch files" when writing quick-and-dirty code, simply to save a little bit of time. It has 2 primary features that make it more useful than running a plain PHP interpreter:

  1. Automatic Autoloaders - When running a PHP file, it will automatically detect and use Composer's autoloader if it exists in the current directory or a parent directory
  2. Class Aliasing - If a class is used in the file that doesn't exist, it will attempt to alias it to a class in the autoloader

Installation

You can install the package via Composer:

composer global require futureplc/run-php

Usage

To run a PHP file with the script, just call the command and pass through a file path as a single argument:

run-php /path/to/file/to/run.php

License

The MIT License (MIT).

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-08-30