phpion/ionizer

Ionize your PHP code! PHP wrapper for php-ion extension

1.0.5 2017-09-21 21:23 UTC

This package is not auto-updated.

Last update: 2024-11-18 08:08:12 UTC


README

Ionize your PHP code!

TL;DR

This library automatically configure and setup the php ion extension. Using command line you may start scripts with php ion extension without installation of package in system. Also ionizer allows maintain php-ion versions and configurations.

Install

composer global require php-ion/ionizer

Basic Usage

  • ion run <file.php> — parse and execute the specified file, like php <file.php>
  • ion eval <php-code> — evaluate a string as PHP code, like php -r <code>
  • ion info — show summary info
  • ion versions, ion versions all - show available versions
  • ion version <ion-version> - switch to specific version
  • and more, see ion help

Advanced usage

Build extension:

  • ion build build extension
    • ion build ., ion build /tmp/php-ion-src/
    • ion build master, ion build 0.8.3, ion build 33b1e417
  • ion test test extension
    • ion test test the current extension
    • ion test ., ion test /tmp/php-ion-src/
    • ion test master, ion test 0.8.3, ion test 33b1e417
  • ion clean clean after build