byjg/scriptify
最新稳定版本:6.0.0
Composer 安装命令:
composer require byjg/scriptify
包简介
Transform any PHP class into an executable script callable from the command line without changes or refactoring.
README 文档
README
Transform any PHP class into an executable script callable from the command line without changes or refactoring.
Features
Scriptify allows you to:
- Call any PHP method from the command line
- Install PHP classes/methods as system services (daemon, cron, etc.)
- Call REST endpoints from shell scripts
- Open an interactive PHP terminal with your project's autoloader
- Pass environment variables to your scripts
Documentation
- Call a PHP method from the command line
- Install a PHP class/method as a service
- Call a REST endpoint from the command line
- Interactive PHP terminal
- Show method documentation
- Environment variables
- Play with the service
Installation
Scriptify does not need to be associated with your PHP project.
Install Locally (Recommended)
composer require "byjg/scriptify"
Install Globally
composer global require "byjg/scriptify" sudo ln -s /root/.composer/vendor/bin/scriptify /usr/local/bin/scriptify # If you want to share this installation with other users, consider using: chmod a+x /root # Note: The root directory will remain unreadable for them, but they can execute scriptify
Dependencies
flowchart TD
byjg/scriptify --> symfony/console
byjg/scriptify --> byjg/jinja-php
Loading
统计信息
- 总下载量: 143
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-09