Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
php.js implements PHP functions in JavaScript
JavaScript HTML PHP Other

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
_experimental
_helpers
_notporting
_octopress
_tools
_unported
_workbench
examples
ext
functions
tests
.gitignore
.gitmodules
LICENSE-GPL.txt
LICENSE-MIT.txt
Makefile
README.md
getavatars.pl
gittydown.sh
gittyup.sh
index.html

README.md

php.js is an open source project that brings high-level PHP functions to low-level JavaScript platforms such as webbrowsers, AIR, V8 and rhino.

If you want to perform high-level operations on these platforms, you probably need to write JS that combines it's lower-level functions and build it up until you have something useful like: md5(), strip_tags(), strtotime(), number_format(), wordwrap().

That's what we are doing for you.

More info at:

Building the site

# install octopress dependencies (ruby & gems)
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
rvm install 1.9.2 && rvm use 1.9.2
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
source ~/.bash_profile
cd _octopress
gem install bundler
bundle install

build, generate, commit, push, deploy

make site

preview locally

make site-preview

reset site (should not be necessary)

make site-clean
Something went wrong with that request. Please try again.