PHPackages                             byjg/scriptify - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. byjg/scriptify

ActiveLibrary[CLI &amp; Console](/categories/cli)

byjg/scriptify
==============

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

6.0.0(5mo ago)0184↓50%2MITPHPPHP &gt;=8.3 &lt;8.6CI passing

Since Dec 17Pushed 2mo agoCompare

[ Source](https://github.com/byjg/php-scriptify)[ Packagist](https://packagist.org/packages/byjg/scriptify)[ GitHub Sponsors](https://github.com/byjg)[ RSS](/packages/byjg-scriptify/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (4)Used By (2)

   sidebar\_key scriptify   tags    php

 cli

    Scriptify - CLI Script Transformer
==================================

[](#scriptify---cli-script-transformer)

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

[![Sponsor](https://camo.githubusercontent.com/fab14b7f7f475072ada0473f193d6f322561fd4a2958e0cc89910d053347cf27/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53706f6e736f722d2532336561346161613f6c6f676f3d67697468756273706f6e736f7273266c6f676f436f6c6f723d7768697465266c6162656c436f6c6f723d306431313137)](https://github.com/sponsors/byjg)[![Build Status](https://github.com/byjg/php-scriptify/actions/workflows/phpunit.yml/badge.svg?branch=master)](https://github.com/byjg/php-scriptify/actions/workflows/phpunit.yml)[![Opensource ByJG](https://camo.githubusercontent.com/425c1bbccc0f292bf4d20569ae74a6b2e384fd648f1af8911bc61de9a8dcfc0b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6f70656e736f757263652d62796a672d737563636573732e737667)](http://opensource.byjg.com)[![GitHub source](https://camo.githubusercontent.com/88e61eb211719144efdd570290a0456b6e13099c2df8d973f1bb43fe33bf0039/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4769746875622d736f757263652d696e666f726d6174696f6e616c3f6c6f676f3d676974687562)](https://github.com/byjg/php-scriptify/)[![GitHub license](https://camo.githubusercontent.com/1ff2ba7942f4b82f08c7f1572617890e63e61c92e35b2c3d31c7a6a7087aab9f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f62796a672f7068702d7363726970746966792e737667)](https://opensource.byjg.com/opensource/licensing.html)[![GitHub release](https://camo.githubusercontent.com/ad363ea9751b85342edcd3229a9a07d0a76059c0ee001d167e7d078828f5daba/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f62796a672f7068702d7363726970746966792e737667)](https://github.com/byjg/php-scriptify/releases/)

Features
--------

[](#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
-------------

[](#documentation)

- [Call a PHP method from the command line](docs/script.md)
- [Install a PHP class/method as a service](docs/install.md)
- [Call a REST endpoint from the command line](docs/endpoint.md)
- [Interactive PHP terminal](docs/terminal.md)
- [Show method documentation](docs/showdocs.md)
- [Environment variables](docs/environment.md)
- [Play with the service](docs/play.md)

Installation
------------

[](#installation)

Scriptify does not need to be associated with your PHP project.

### Install Locally (Recommended)

[](#install-locally-recommended)

```
composer require "byjg/scriptify"
```

### Install Globally

[](#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
------------

[](#dependencies)

 ```
flowchart TD
    byjg/scriptify --> symfony/console
    byjg/scriptify --> byjg/jinja-php
```

      Loading ---

[Open source ByJG](http://opensource.byjg.com)

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance79

Regular maintenance activity

Popularity12

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~171 days

Total

3

Last Release

175d ago

Major Versions

5.0.x-dev → 6.0.02025-11-25

PHP version history (2 changes)5.0.x-devPHP &gt;=8.1 &lt;8.4

6.0.0PHP &gt;=8.3 &lt;8.6

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/981924?v=4)[Joao Gilberto Magalhaes](/maintainers/byjg)[@byjg](https://github.com/byjg)

---

Top Contributors

[![byjg](https://avatars.githubusercontent.com/u/981924?v=4)](https://github.com/byjg "byjg (89 commits)")[![claude](https://avatars.githubusercontent.com/u/81847?v=4)](https://github.com/claude "claude (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/byjg-scriptify/health.svg)

```
[![Health](https://phpackages.com/badges/byjg-scriptify/health.svg)](https://phpackages.com/packages/byjg-scriptify)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[crazywhalecc/static-php-cli

Build single static PHP binary, with PHP project together, with popular extensions included.

1.8k13.9k](/packages/crazywhalecc-static-php-cli)[matthiasnoback/symfony-console-form

Use Symfony forms for Console command input

368264.8k8](/packages/matthiasnoback-symfony-console-form)[phpcr/phpcr-shell

Shell for PHPCR

721.3M8](/packages/phpcr-phpcr-shell)[madewithlove/license-checker

CLI tool to verify allowed licenses for composer dependencies

54449.8k21](/packages/madewithlove-license-checker)[shel/neos-terminal

Neos CMS Ui terminal for running Eel expressions and other commands

1441.3k](/packages/shel-neos-terminal)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
