Phpjs is a framework to help you use PHP methods in javascript.
- Simple to use
- On-demand method loading
- The str_replace method is now available
- $ _GET is now available
First download the latest version of our repository.
Include file phpjs.min.js in your page.
<script src="dist/phpjs.min.js"></script>
Install the methods you want to use
<script>phpjs.setup(['$_GET','str_replace'])</script>
Using methods:
phpjs.$_GET['variable']; //return the $_GET variable value.
phpjs.str_replace('hi', 'hello', 'hello how are you?'); //return hi how are you?
Want to contribute? Great! PhpJS uses Gulp for fast developing.
Open your favorite Terminal and run these commands.
First Tab (enter in root phpjs folder and run):
$ npm install gulp gulp-uglify gulp-rename gulp-concat -g
$ npm install
$ gulp
- Hiago Silva Souza <[email protected]>
MIT