Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.
/ hphpy Public archive

[DEPRECATED] Simple pre-processor for PHP sugar

Notifications You must be signed in to change notification settings

hbnro/hphpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ready for happiness?

Basically helps to transform this source code:

Hphpy source

to php code:

PHP output

and that's it.

Adds some sugar for convenience, while it leaves, within possible, the php code intact.

Features

  • Break long-lines and params
  • Hard strings for Heredoc/Newdoc
  • Smart CONSTANT definitions
  • Destructuring assignment
  • Weak-scope lambdas
  • Block comments

Known issues

  • Currently on design and experimental phase, take care
  • Implicit return statement, parenthesis and braces where as possible
  • Weak symbol-as-string implementation using RegExp

Acknowledgments

Strongly inspired by Ruby, Python and CoffeeScript due its brevity, readability and expressiveness respectively.

About

[DEPRECATED] Simple pre-processor for PHP sugar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages