Skip to content

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

License

Notifications You must be signed in to change notification settings

byjg/php-scriptify

Repository files navigation

PHP Scriptify

Build Status Opensource ByJG GitHub source GitHub license GitHub release

Transform any class in a *nix daemon process or cron job without changes or refactoring.

Features

Allow you to do the following without change your pre-existing class:

  • Create a *nix daemon process from any PHP class
  • Enable call any get RESt endpoint from the shell script
  • Enable call any public method from the shell script

How To:

Install

Daemonize does not need to be associated to your PHP project.

Install locally (preferable):

composer require "byjg/scriptify"

Install as a global composer package:

composer global require "byjg/scriptify"
sudo ln -s /root/.composer/vendor/bin/daemonize /usr/local/bin/daemonize

# If you want to share this installation with another users consider use the command `chmod a+x /root`. 
# The root directory will remain unreadable for them, but you'll can execute the script "daemonize".

Dependencies

flowchart TD  
    byjg/daemonize --> symfone/console  
Loading

Open source ByJG

About

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

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published