byjg/scriptify

Transform any PHP class into an executable script callable from the command line without changes or refactoring.

Maintainers

Package info

github.com/byjg/php-scriptify

pkg:composer/byjg/scriptify

Fund package maintenance!

byjg

Statistics

Installs: 181

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 0

6.0.0 2025-11-25 00:12 UTC

This package is auto-updated.

Last update: 2026-03-10 17:58:31 UTC


README

sidebar_key tags
scriptify
php cli

Scriptify - CLI Script Transformer

Transform any PHP class into an executable script callable from the command line without changes or refactoring.

Sponsor Build Status Opensource ByJG GitHub source GitHub license GitHub release

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

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

Open source ByJG