perchten / wordpressunderscore.php
WordpressUnderscore.php is a fork of Underscore.php, a PHP port of Underscore.js.
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-11-09 15:05:44 UTC
README
WordpressUnderscore.php is a wordpress-friendly fork of the Underscore.php PHP port of Underscore.js.
Usage
__u().fn() or __u::fn()
instead of
__().fn() or __::fn()
See above links for details of the actual funtions.
Notes
In addition to porting Underscore's functionality, Underscore.php includes matching unit tests. Thanks to Jeremy Ashkenas and all contributors to Underscore.js.
For docs, license, tests, change log, and downloads, see: http://brianhaveri.github.com/Underscore.php
Why Not A Wordpress Plugin?
Because it's tiny and only useful for developers.
If you're a developer and unfamiliar with Composer, go check it out. You can use it to load utility libraries into your plugins or themes.