2017 © Pedro Peláez
 

library compiler

String compiler library

image

kasseler/compiler

String compiler library

  • Wednesday, March 25, 2015
  • by kasseler
  • Repository
  • 1 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Compiler Component

Build Status Scrutinizer Code Quality Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

The compiler converts the string data in php., (*2)

Requirements

  • PHP >= 5.4

Installation

$ composer require kasseler/compiler

Usage

$compiler = new Compiler('substr|md5|is_array'); //allow functions
$compiler->run("is_array([1, 2, 3, 5])"); //return true
$compiler->run("substr('my function compile', 3, 8)"); //return string 'function'
$compiler->run("[1, 2, 3, 4, 5]"); //return array [1, 2, 3, 4, 5]
$compiler->run('{"assoc":[1, 2, 3, 4, 5]}'); //return assoc array ['assoc' => [1, 2, 3, 4, 5]]
$compiler->run("md5('654')"); //return hash md5 'ab233b682ec355648e7891e66c54191b'
$compiler->run("true"); //return boolean true

The Versions

25/03 2015

dev-master

9999999-dev http://kasseler-cms.net

String compiler library

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Igor Ognichenko

25/03 2015

1.0.1

1.0.1.0 http://kasseler-cms.net

String compiler library

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Igor Ognichenko

28/02 2015

1.0.0

1.0.0.0 http://kasseler-cms.net

Kasseler compiler package

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Igor Ognichenko